From deca1ef2a3eec6aebca3bb5b34e5ebee209567ec Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 29 Jun 2026 16:06:44 +0000 Subject: [PATCH] feat(postfix): disable processing of MIME headers Default behavior is processing headers that are actually part of the message body. This is unlikely to be needed as headers such as Received are not added into MIME parts, but may result in broken DKIM signatures if the body is modified. --- cmdeploy/src/cmdeploy/postfix/main.cf.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmdeploy/src/cmdeploy/postfix/main.cf.j2 b/cmdeploy/src/cmdeploy/postfix/main.cf.j2 index f383e560..c6aa51ab 100644 --- a/cmdeploy/src/cmdeploy/postfix/main.cf.j2 +++ b/cmdeploy/src/cmdeploy/postfix/main.cf.j2 @@ -85,6 +85,14 @@ inet_protocols = all lmtp_header_checks = regexp:/etc/postfix/lmtp_header_cleanup +# Do not apply header checks to MIME headers +# and other headers that are actually part of the message body. +# Reference: +# +# +# +disable_mime_input_processing = yes + mua_client_restrictions = permit_sasl_authenticated, reject mua_sender_restrictions = reject_sender_login_mismatch, permit_sasl_authenticated, reject mua_helo_restrictions = permit_mynetworks, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, permit