David Aspinall said: > Ok, so if I understand everything now, maildrop is where I want to do > spamassasin filtering (xfilter) so it can modify the message before > delivery, however because I am using LDAP and placing messages in a > directory other than the $HOME for the user .. maildrop does not > execute as expected and my filtering never happens. > > Have I missed something? How can I get maildrop to behave? This > cannot really be that unusual can it?
Let me see if I can clear the mud up some. Maildrop is an LDA (Local Delivery Agent). It's job is to make sure that messages get delivered to the user's mailbox and optionally, do some filtering on those messages. You can enable maildrop as the LDA for Courier by setting this line in courierd (in my case, located in /etc/courier/ directory): DEFAULTDELIVERY="| /usr/lib/courier/bin/maildrop -w 90" This is what I have in my courierd file (the -w 90 tells maildrop to warn user's when their at 90% of their quota). It tells Courier to call maildrop for local deliveries as the default (user's can specify another LDA by creating a .courier file). It does not matter whether your users are real (can login to the shell) or virtual (accounts exist in LDAP or MySQL database). If their mail store is on the local machine, then they are local. Where it does matter is if Courier accepts mail for a domain, only to forward to the domains real domain server (Courier is acting as a MX backup) or for aliases. In these cases, maildrop never gets called because the mail is routed off of the local server. It also does not matter where on the server's filesystem your user's home directories are stored, I have LDAP configured as the backend and all user's Maildir's are in /var/maildir/USERNAME. You could even have user's home directories mounted via NFS on the Courier server. I think the source of your confusion is understanding the difference between real vs. virtual users and local vs. remote destinations. Hopefully this clarifies that somewhat. Jay -- Jay Lee Network / Systems Administrator Information Technology Dept. Philadelphia Biblical University -- ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
