I have a non-traditional network architecture – I need to run spamassassin against all inbound SMTP (generally messages to sympa email lists), but not invoke spamd when sending outbound messages. I realize this must be easy, but I can’t get my head around it right now.

 

The smtp entry in my (postfix) “master.cf” file is:

 

smtp    inet    n       -       y       -       -       smtpd

        -o content_filter=postfixfilter:

 

postfixfilter unix - n n - - pipe

        flags=Rq user=postfixfilter argv=/usr/bin/postfixfilter -f ${sender} -- ${recipient}

 

 

…and “/usr/bin/postfixfilter” looks like:

 

#!/bin/bash

 

/usr/bin/spamc | /usr/sbin/sendmail -i "$@"

 

exit $?

 

 

 

Any thoughts appreciated.

 

 

-Dean

ONE/Northwest

 

 

Reply via email to