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.