Ok. I know that Sam says this isn't easy. I accept that. :)
I'm trying to get maildrop filtering to work with virtual
users. I have set up a virtual domain, and mail is
delivered to it with no problem. I have created a
virtual user using the userdb method and he can
receive mail with no troubles. I have switched the
delivery mechanism to maildrop in /etc/courier/courierd.
maildrop filtering works with real system users.
But, I can't seem to figure out how to "set up the
dominoes" correctly for virtual users. Is there something
special that needs to go into the userdb for maildrop
to see the .mailfilter file?
Currently all of the virtual mail just gets delivered into the
INBOX ("new" directory) for the virtual user. So, it does
get delivered, but obviously maildrop isn't getting the
.mailfilter file correctly, or something. (Also, is there a log
of maildrop activity, or a way to turn one on?)
Here are the contents of my files (pardon the wrapping of lines):
1) userdb:
jo...@auser.com
home=/home/domains/auser.com/users/john|mail=/home/domains/auser.com/users/
john/Maildir|systempw=xxxxxxxxx|gid=999|uid=999
2) maildirfilterconfig in /etc/courier:
MAILDIRFILTER=../.mailfilter
MAILDIR=./Maildir
3) the .mailfilter in /home/domains/auser.com/users/john:
(really simple just to test)
to "./Maildir/.rootstuff/."
I have tried creating a maildirfilterconfig in
/home/domains/auser.com/users/john which points (I've tried full path
names and relative) to the .mailfilter file and to the Maildir, but that
doesn't work either.
Thanks to anyone who can give me a hand here. :)
John