On 10/20/2011 5:22 AM, Roland de Lepper wrote: > Hi, > > I've configured Postfix to do header_checks on all incoming mail. > The header_checks check if the To: address is one in the > header_checks file and then do an action (FILTER in my case) > > I had to do the filtering this way because I was not able to get 2 > content_filtering working the on the same postfix instance without > running my autorespond and disclaimer filter as daemon. > This setup works perfect for mail send from inside the doamin to > another emailaddress in that domain. But when sending mail from eg > gmail, the header_checks are not executed. > > Why not?
header_checks is (still) the wrong tool for this job. You need to configure your first filter script to send its output to the second filter script rather than trying to hop through postfix in between -- postfix will treat it as one filter rather than two. This is likely as simple as replacing the last "sendmail ..." line of the first filter with the command that calls the second filter. -- Noel Jones