Geoff Shang:
> submission inet n       -       -       -       -       smtpd
>    -o smtpd_enforce_tls=yes
>    -o smtpd_sasl_auth_enable=yes
>    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
>    -o milter_macro_daemon_name=ORIGINATING
>    -o header_checks=pcre:/etc/postfix/header_checks

As documented header_checks is not an smtpd(8) feature, it is
a cleanup(8) feature.

The easiest way to give separate treatment to mail from the 
internal network versus mail from outside is to use separate
Postfix instances. 

Otherwise, 

    submission inet n       -       -       -       -       smtpd
        -o cleanup_service=submission_cleanup

    submission_cleanup unix n  ............................ cleanup
        -o header_checks=pcre:/etc/postfix/header_checks

would do the job.

        Wietse

Reply via email to