On 10/29/2015 7:44 AM, Marco wrote: > Hello all. > > I'm using postfix since at least 20 years and I could always find a > satisfactory solution to my problems. > > However I have an now an issue with the filtering of the mail headers, > as I want to use the headers_check functionality only for e-mails sent > to external/Internet addresses. This without the need of creating a > number of roles depending from the internal sender, IP, ecc as I have > found as hints by googling today (I do support several IPs, domains, ecc).
This sounds like what you're looking for; header_checks that are run while mail is being delivered via SMTP. http://www.postfix.org/postconf.5.html#smtp_header_checks http://www.postfix.org/header_checks.5.html -- Noel Jones > > I have one VM dedicated to Postfix and it seems that the only general > solution is to create a new Posfix VM, define this as the relayhost and > apply the headers_check in this VM that will be used only for Internet > outgoing traffic. > > Is there any other solution that will not need a new VM? > > Tnx > > Marco >