[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Maildrop



On Mon, 21 Mar 2005 21:26:02 +0000, Chris Boot <bootc@bootc.net> wrote:
> Hi all,
> 
> I'm using Maildrop with a virtual domains setup running on my Postfix
> mail system.
> 
> I've recompiled maildrop to add MySQL capabilities to it, but I just
> used the Debian source and edited the rules file. I've got a nice
> web-based admin system and it all works fine, except when I add a new
> mailbox I need to create the maildir on the filesystem manually. Any
> mail sent to the new mailbox just gets queued up.
> 
> Is there any way I can get maildrop to create maildirs as it encounters
> them? I seem to remember this used to work before, but I don't for the
> life of me know what I could have changed to stop it from working...
> 

Maildrop itself can't make them, but it can run external programs.
The following tests if a Maildir exists within a users homedir and
creates it if necessary. Then it tries to deliver the mail.

`test -d $HOME/Maildir`
if( $RETURNCODE == 1)
{
         `maildirmake $HOME/Maildir`
}
exception {
         to $HOME/Maildir/
}

Be aware though that the test is done for every incoming email.
The cost is not that high, but on a heavily loaded system you might
not want to do this.

 -Olaf



Reply to: