* BP20 <dsehlh...@leds-com.de>: > Hello, > > i am new to this. > I am trying to set up a content filter for incoming postfix mails. > I am using this instruction: > http://www.postfix.org/FILTER_README.html#simple_filter > <http://www.postfix.org/FILTER_README.html#simple_filter> > > ------- master.cf snippet ------- > smtp inet n - - - - smtpd > -o content_filter=filter:dummy > filter unix - n n - 10 pipe > flags=Rq user=filter null_sender= > argv=/var/spool/filter/afterqueue.sh -f ${sender} -- ${recipient} > > > The problem is, that the filter is also applied to outgoing mails. > I don't really understand that "-o content_filter=filter:dummy" line. Should > "filter:dummy" be replaced?
Nope. Your problem very likely is that your Postfix server currently is unaware of directions. It can't tell what is incoming nor can it tell what is outgoing. > So how can i set it up, so that it is only used for incoming mails? Use a dedicated submission instance (master.cf) to submit outbound mail. p@rick -- [*] 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