On Thu, 11 Apr 2013, Wietse Venema wrote:

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.

Oh duh!  Thanks for pointing this out.

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.

Thanks Wietse.  I think I will opt for this latter option.

Some have suggested smtp_header_checks, and I may use this in some places. But since this box will deliver some mail locally as well as externally, I think I will implement the separate cleanup process.

Thanks everyone for your input.

Geoff.

Reply via email to