On Wed, Mar 02, 2016 at 01:40:17PM -0600, Mike Schleif wrote: > Original filter-only: > master.cf: > smtp inet n - n - - smtpd > -o content_filter=filter:dummy > > filter unix - n n - 10 pipe > flags=Rq user=filter null_sender= > argv=/var/spool/filter/bin/filter.sh -f ${sender} -- ${recipient}
Looks fine. > Now, I'm tasked with also using spamassassin on same host, which works using > following configuration: > > Spamassassin-only: > master.cf: > smtp inet n - n - - smtpd > -o content_filter=spamassassin > > spamassassin unix - n n - - pipe > user=spamd argv=/usr/bin/spamc -f -e > /usr/sbin/sendmail -oi -f ${sender} ${recipient} > > Our problem is using _both_ spamassassin and filter, preferably in that > order. Simplest is to have SA invoke your filter instead of sendmail(1). spamassassin unix - n n - - pipe user=spamd argv=/usr/bin/spamc -f -e /var/spool/filter/bin/filter.sh -f ${sender} -- ${recipient} Actually running two content_filters back to back is possible, but best avoided if the above is sufficient. -- Viktor.