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.
Thanks for the reply. I was trying to avoid account lookups in maildrop
as exim has already done that with mysql calls.
I have managed to get it working by using this in the hand off from exim:
command /the/path/to/maildrop -w 90 \
/the/path/to/the/virtual/user/Maildir/.mailfilter
and then ensuring that the every virtual use has a .mailfilter file which
by default says:
MAILDIR=/the/path/to/the/virtual/user/Maildir # Default maildirectory
to "$MAILDIR"