Centos:  7.2.1511 (Core)
postfix: 2.10.1

This postfix server was designed to run as follows, which it has done for
several months without incident:

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}


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.

Google shows me many references to configuring multiple smtp instances
listening to different ports; which all fail because we're using "pipe" on
both filters.

I've also seen a couple references to chaining pipe-based filters by
calling the 2nd directly from the 1st configuration. This has failed for
me, probably due to different "user" and "flags."


How need I configure postfix to first use spamassassin, then use "filter?"

What am I missing?

 <http://twitter.com/mikeschleif>

Reply via email to