diff --git a/templates/postfix/main.cf.j2 b/templates/postfix/main.cf.j2 index ead07a9..6096094 100644 --- a/templates/postfix/main.cf.j2 +++ b/templates/postfix/main.cf.j2 @@ -289,8 +289,6 @@ default_destination_rate_delay = 60s default_destination_recipient_limit = 1 default_destination_concurrency_failed_cohort_limit = 10 -header_checks = pcre:{{ postfix_conf_dir }}/header_checks - {% if postfix_type == "internet" %} ### Spam and DKIM {% if postfix_smtpd_milters is defined %} @@ -333,9 +331,10 @@ compatibility_level = 2 biff = no append_dot_mydomain = no -# Add missing headers +# Header treatment always_add_missing_headers = yes local_header_rewrite_clients = permit_mynetworks +header_checks = pcre:{{ postfix_conf_dir }}/header_checks mailbox_size_limit = 0 message_size_limit = {{ postfix_message_size_limit }}