From 735493845cee312b695ef249b43f9f6a7db1b8ac Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Tue, 20 Jan 2026 15:21:47 -0800 Subject: [PATCH] Aggressive LMTP header cleanup This will remove all headers possible during LMTP delivery. From: required or clients do not process the message correctly Message-Id: required for clients to know which messages have been downloaded Chat-Is-Post-Message: is required for our attachment previews Content-Type: required (??) Subject: required due to test assertions --- cmdeploy/src/cmdeploy/postfix/lmtp_header_cleanup | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cmdeploy/src/cmdeploy/postfix/lmtp_header_cleanup b/cmdeploy/src/cmdeploy/postfix/lmtp_header_cleanup index 3c45f8d8..626ba45f 100644 --- a/cmdeploy/src/cmdeploy/postfix/lmtp_header_cleanup +++ b/cmdeploy/src/cmdeploy/postfix/lmtp_header_cleanup @@ -1,3 +1,6 @@ -/^DKIM-Signature:/ IGNORE -/^Authentication-Results:/ IGNORE -/^Received:/ IGNORE +/^From:/ DUNNO +/^Message-Id:/ DUNNO +/^Chat-Is-Post-Message:/ DUNNO +/^Content-Type:/ DUNNO +/^Subject:/ DUNNO +/.*/ IGNORE