Hello Paul,
i use postfix, maildrop and courier-imap and squirrelmail with virtual
users stored in an postgresql db. because maildrop currently does not
support postgresql i use this global maildroprc file which includes a
personal .mailfilter file for each user.
logfile "/storage/mail/maildrop.log" ;
RECIPIENT = $1 ;
if ($RECIPIENT=~/.*!@!.*/)
{
USER = "$MATCH.$MATCH3" ;
}
else
{
echo "False Syntax in $RECIPIENT" ;
EXITCODE = 1 ;
exit ;
}
DEFAULT = "/storage/mail/$USER/Maildir/" ;
MAILDIR = "/storage/mail/$USER/Maildir" ;
xfilter "/usr/bin/spamc -x -u $USER" ;
include "/storage/mail/$USER/.mailfilter" ;
Dominik
Paul Dlug schrieb:
I'm using maildrop to do delivery for all users on my mail server. No
actual accounts exist so maildrop is running as the user 'vmail' and
delivering into each mailbox. Is there any way to have a per-user
maildroprc in this configuration? I somehow need to provide support
for vacation messages and mail forwarding.
Or does anyone else have a strategy for supporting .forward files in
sendmail with virtual users.