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:
if /^TO:/
/^To:.*brab@example\.com/ FILTER autoresponder:
/^To: .*info.france@example\.com/ FILTER autoresponder:
endif

master.cf:
        -o cleanup_service_name=autoreply-cleanup

autoreply-cleanup       unix    n       -       n       -       0
cleanup
        -o header_checks=regexp:/etc/postfix/header_checks

autoresponder unix      -        n       n       -      - pipe
    flags=Fq user=autoresponse argv=/usr/local/sbin/autoresponse -s
${sender} -r ${recipient} -S ${sasl_username} -C ${client_address}


We have an external mailfilter in front of the Postfix server. Does this
rewrite the header?

Kind regards,

Roland de Lepper

Reply via email to