Sam Varshavchik wrote:

Scott writes:

Sam Varshavchik wrote:

Scott writes:

Sam Varshavchik wrote:

Scott writes:

because maildir=homedir for my virtual users. However, the maildrop rules are not working. my /etc/courier/maildrop is correct:

/usr/lib/courier/bin/maildrop




/etc/courier/maildrop has nothing to do with this.

You need to set DEFAULTDELIVERY in /etc/courier/courierd:

#  Here's how to have maildrop handle local deliveries.
#
#  DEFAULTDELIVERY="| /usr/lib/courier/bin/maildrop"
#

If you're using one of the virtual authentication modules, you'll need to set, instead, the defaultdelivery field.



Of course, you're right. That's what I meant to show that maildrop was being used as the defaultdelivery.


[EMAIL PROTECTED] courier]# grep DEFAULTDELIVERY courierd
...
DEFAULTDELIVERY="| /usr/lib/courier/bin/maildrop"

I'm using authuserdb. .mailfilter files are still not being read. Any other ideas?



If you're using the 'mail' attribute in userdb, that, essentially, takes precedence over 'defaultdelivery'.


How can I get maildrop filters to work with userdb? Can I specify something in the userdb files?

[EMAIL PROTECTED] home=/home/virtual/domain1.com/user1\
|mail=/home/virtual/domain1.com/user1|uid=1001|gid=1001\
|systempw=XYZ
(line breaks to make it readable, they're not really there in userdb/domain1.com)


Maildrop filters only work if the mail setting is not specified, which then defaults to $HOME/Maildir.

I created a user 'testuser' leaving out 'mail=' in userdb and specifying
'home=' only. I changed maildirfilterconfig back to it's original
state. /home/virtual/domain1.com/testuser/Maildir/ exists now instead of everything living in .../testuser/. With only that, messages to testuser are being deferred and I'm getting the error below in my maillog:


/usr/lib/courier/bin/maildrop: Unable to filter message.

Then I noticed that if I removed my maildroprc (which is there primarily for spamassassin filtering), the emails would be delivered and the testuser .mailfilter works. However, I lose the ability to do universal filtering with maildrop.

Short of putting spamassassin filter rules into every user's .mailfilter, how can I have both maildroprc universal filtering AND virtual user maildrop filters? Or can I?

-Scott



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to