On 4/24/2014 8:21 PM, Tim Hogan wrote: > I was looking for a way to skip the content_filter for connections to > localhost. Looking at http://www.postfix.org/FILTER_README.html I found > that the only way was to configure each interface in the master.cf > file. So what I had was the following line in my main.cf > > content_filter = smtp-amavis:[127.0.0.1]:10024 > > An in my master.cf I placed the following > > 127.0.0.1:smtp inet n - > - - - smtpd > -o content_filter= > -o smtpd_client_restrictions=permit_mynetworks,reject > 50.76.143.89:smtp inet n - > - - - smtpd > > What I found is that with those options set, content filtering still > happened on the localhost interface. What I ended up having to do was > remove the content_filter directive from my main.cf file and add it to > the public interface in the master.cf. > > My question is; What did I miss? Shouldn't the blank content_filter > line int eh master.cf have over-ridden the setting in the main.cf? > > Regards, > Tim >
I expect your locally-generated mail goes through the sendmail(1) interface, rather than SMTP. Mail submitted to sendmail(1) enters the postfix qaueue by the pickup(8) service in master.cf. It's not uncommon to set an empty "-o content_filter=" on the master.cf pickup service to disable filtering on locally-generated mail. http://www.postfix.org/OVERVIEW.html http://www.postfix.org/sendmail.1.html http://www.postfix.org/pickup.8.html -- Noel Jones