Grzegorz Niemirowski writes:

I have a virtual domain set up and mail accounts for it in LDAP. Courier works well. There is also SpamAssassin filtering spam for these accounts. It also does its job. But I also have a few aliases in that domain, defined in LDAP too. The problem is that mail sent to aliases is not filtered at all. It's bad because aliases are used to redirect mail to other domains (eg. gmail.com) and I don't want my server to relay spam. I don't know how to configure Courier to filter mail sent to aliases. Antispam for accounts is configured in usual way:
in courierd:
DEFAULTDELIVERY="| /usr/bin/maildrop"
in maildroprc:
exception {
    xfilter "/usr/bin/spamassassin"
}

maildrop gets invoked to deliver mail to local mailboxes. Your aliases forward mail to an external address. Because no local mail delivery takes place, no mail filtering takes place.

What you want to do is invoke spamassassin as part of mail processing. See the Courier::Filter perl module:

http://search.cpan.org/dist/Courier-Filter/


Attachment: pgp6QbEeapF76.pgp
Description: PGP signature

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to