so let's say I wanted to do what Lewin said, have normal mail on 25, and then special non filtered mail (mail that has already gone through the filter) on some other port, let's say 10025
At the end of the example filter script there is a sendmail command. Is there anyway to have this work with this scenario? http://www.postfix.org/FILTER_README.html -tim On 3/19/14, li...@rhsoft.net <li...@rhsoft.net> wrote: > as lonf you are talking about pickup there is no port > involved at all and no smtp/smtpd setting is relevant > because it's just not SMTP > > Am 19.03.2014 20:49, schrieb Tim Prepscius: >> I'm looking through the docs of sendmail, seeing how I can get it to >> send to a specific port. But not seeing it. >> >> Am I looking in the wrong place? >> >> On 3/19/14, Lewin Bormann <der.mess...@yahoo.com> wrote: >>> It seems that the local delivery (pickup?) uses the content filter which >>> it shouldn't, AFAIK. >>> If that is the case, the following master.cf configuration taken from my >>> installation may help: >>> >>> ------ snip ------- >>> >>> <ip>:smtp inet n - n - - smtpd >>> -o content_filter=myspamfilter >>> -o receive_override_options=no_address_mappings,no_milters >>> >>> <ip>:587 inet n - n - - smtpd >>> >>> [<ip6>]:smtp inet n - n - - smtpd >>> -o content_filter=myspamfilter >>> -o receive_override_options=no_address_mappings,no_milters >>> >>> [<ip6>]:587 inet n - n - - smtpd >>> >>> 127.0.0.1:smtp inet n - n - - smtpd >>> [::1]:smtp inet n - n - - smtpd >>> >>> [...] >>> >>> myspamfilter unix - n n - - pipe >>> flags=Rq user=debian-spamd argv=/etc/postfix/spamchk -oi -f ${sender} >>> ${recipient} >>> >>> -------- snap -------- >>> >>> The result is that only mail submitted on port 25 is piped through the >>> content filter (in my case a shell script involving SpamAssassin and >>> sendmail, similar to the mentioned README). Mail on 587 from users and >>> from localhost is not filtered >