3 messages in net.sourceforge.lists.courier-maildrop[maildropl] Re: replacing deliverquot...
FromSent OnAttachments
GraemeDec 12, 2003 8:12 am 
Sam VarshavchikDec 12, 2003 4:08 pm 
GraemeDec 13, 2003 4:00 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Re: replacing deliverquota with maildropActions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Dec 12, 2003 4:08:41 pm
List:net.sourceforge.lists.courier-maildrop

Graeme writes:

I run my mail server on FreeBSD 4.9 and am using exim and courier-imap with virtual mail users whose details are held in a mysql database. For incoming mail exim verifies the user, retrieves the location of the virtual user's Maildir, and currently hands off to deliverquota from a transport that includes the following:

command = /the/path/to/deliverquota -w 90 \ /the/path/to/the/virtual/user/Maildir/

Which works really well.

I want to replace deliverquota with maildrop in order to be able to use per user mailfilters. I have tried modifying the hand off to:

command = /the/path/to/maildrop -w 90 \ -d /the/path/to/the/virtual/user/Maildir/

but get the following error: mail maildrop[15485]: Invalid user specified.

The -d option to maildrop specifies the userid to whom the message is to be delivered to. Normally it's only used when maildrop is invoked by root; maildrop looks up the userid's home directory, and delivers to $HOME/Maildir. The alternative is to arrange to have maildrop invoked under the recipient's userid, in which case it can figure out the home directory on its own.

maildrop is mail delivery agent for system accounts; there is no direct provision for delivery to “virtual accounts”. However, there are some extensions that can be enabled which provide an account lookup facility via an external table or a database. See INSTALL for more information.