I have working Courier + SpamAssassin + Amavis + F-Prot setup without patching anything.

/etc/courier/courierd:
#=#=#=#=#=#=#=#=#=#
DEFAULTDELIVERY="| /usr/sbin/amavis | /usr/lib/courier/bin/maildrop"
#=#=#=#=#=#=#=#=#=#

/etc/courierd/maildroprc:
#=#=#=#=#=#=#=#=#=#
if ( $SIZE < 100000 )
{
exception {
xfilter "/usr/bin/spamassassin"
}
}
if ( /^X-Spam-Flag: *YES/ )
{
to Maildir/.Spam
}
#=#=#=#=#=#=#=#=#=#
I have virtual users using MySQL, so spamc/spamd won't work, need to use spamassassin executable to read .spamassassin in virtual users homes.



Markus Wernig wrote:


Hello List

In the process of tidying up my fresh install I was wondering if the
following could be achieved:
- All mail that goes through esmtp is virus-checked and rejected if one
is found
- Mail that is relayed to other hosts is then sent as-is (if virus-free)
to the next hop
- Mail for local/alias users is delivered via maildrop and spam-checked
either against the system default settings or (if so configured by the
user) against the user's preferences

The second function is rather trivial, I suppose, as it is the default
behaviour of the MTA (courier esmtpd).

I think I can realize the third function witch spamd/spamc by using a
$sysconfdir/maildrop of
"|/usr/local/bin/spamc|/usr/courier/bin/maildrop" and put the filtering
rules into $sysconfdir/maildroprc, while users may use their own
$HOME/.mailfilter additionally (or overriding maildroprc).

My questions are: Is this assumption correct? And where would I (first
function on the above list) plug in a virus checker that scans every
incoming and outgoing esmtp transaction? Would this be a case for
courierfilter?

This is covered by various documents on the net, but each and every one
uses a different approach, and all of them include one or more patches
to the software included.

I apologize if there is a basic misunderstandingon my part of the
various courier components. Any pointers gladly welcome.

thy /markus



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users






-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to