How to configure multiple postfix content filters?
Patrick Ben Koetter
p at sys4.de
Thu Mar 3 22:39:45 CET 2016
Mike,
* Mike Schleif <mike at mdsresource.net>:
> Centos: 7.2.1511 (Core)
> postfix: 2.10.1
> amavisd-new: 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}
what is it, that filter.sh does? Is it something amavis can do as well?
I'm asking because maybe we can simplify your setup.
p at rick
>
>
> Now, I'm tasked with retrofitting 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.
>
> postfix-users pointed me to: amavisd-new, which I have installed. This
> works properly, regarding spam & virus.
>
> How need I configure postfix to first call amavisd-new, then use "filter?"
>
> <http://twitter.com/mikeschleif>
--
[*] sys4 AG
https://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein
More information about the amavis-users
mailing list