I have a content_filter installed that pipes mail to a script that
invokes spamassassin.  That's working fine.  Relevant lines from
master.cf:

smtp      inet  n       -       n       -       -       smtpd
    -o content_filter=spamfilter:dummy

<snip>

spamfilter unix - n n - - pipe
  flags=Rq user=spamfilter argv=/usr/local/bin/spamfilter.sh -f ${sender} -- 
${recipient}



I would now like to install an autoresponder script.  I had hoped I
could add an additional line after "smtp    inet...." like so:

smtp      inet  n       -       n       -       -       smtpd
    -o content_filter=spamfilter:dummy
    -o content_filter=autoresponder:dummy

and then add the pipe declaration below the spamfilter lines:

autoresponder unix - n n - - pipe
   flags=Fq user=autoresponse argv=/usr/local/sbin/autoresponse -s ${sender} -r 
${recipient} -S ${sasl_username} -C ${client_address}



However, that doesn't work because the only script that seems to receive
the email is the last one listed in the smtp   inet  .... smtpd line.
I can filter the mail with one script or the other, but not both.

What's the best away to achieve a system that both checks for spam and
offers users the ability to auto-reply if they desire?  Is it possible
to chain content_filters?  Or would it be better to invoke one script
from the other?  Or is there a better way?

The spamfilter I'm using is based on this setup:
http://www.akadia.com/services/postfix_spamassassin.html

The autoresponder I'm trying to add is this one:
http://nefaria.com/project_index/autoresponse/

Reply via email to