On Sat, Nov 06, 2021 at 06:51:03PM +0100, Gionatan Danti wrote:

> But I was also interested in a single server solution, not least to 
> better understand postfix itself.

Though I don't recommend complex all-in-one configurations, you
use the "-o cleanup_service_name" option to configure separate
cleanup(8) services for separate smtpd(8) instances:


  master.cf:
    smtp inet ... smtpd
        -o cleanup_service_name=cleanup-mta
        ...
    cleanup-mta unix ... cleanup
        -o syslog_name=postfix/cleanup-mta
        -o header_checks=$mta_header_checks
        -o mime_header_checks=$mta_mime_header_checks
        -o nested_header_checks=$mta_nested_header_checks
        ...

  main.cf:
    # Local (sendmail/postdrop) and SMTP submission:
    header_checks = ...
    mime_header_checks = ...
    nested_header_checks = ... best explicitly empty ...

    #
    mta_header_checks = ... date, subject etc. rules ...
    mta_mime_header_checks = ... attachment MIME header rules ...
    mta_nested_header_checks = ... best explicitly empty ...

I think that the default setting:

    nested_header_checks = $header_checks

is unfortunate, perhaps we should change it to empty at compatibility
level >= 3.7.

-- 
    Viktor.

Reply via email to