Hi Noel,

Sorry, but that is not working.

The first filter (Disclaimer), caps the message to a tempfile. The last
sendmail command put that file and sends the message back to the
queuemanager.

I tried all, but doesn't seem to work. That's why I did it that way, but
that doesn't explain why mails send from mydomain do get the autoreply and
email send from eg gmail, don't receive the autoreply.

We have amavisd in front of the Postfix server. This is a "Cloud based"
service. Maybe that's the bottleneck.

Kind regards,

Roland



On Thu, Oct 20, 2011 at 1:46 PM, Noel Jones <njo...@megan.vbhcs.org> wrote:

> 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
>

Reply via email to