From a4bc665f59c58eee3d40c34795db1d341cad530c 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 core does not process the message correctly. Also required for cleartext compatibility. 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 and Date: retained for cleartext compatibility for now --- cmdeploy/src/cmdeploy/postfix/lmtp_header_cleanup | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cmdeploy/src/cmdeploy/postfix/lmtp_header_cleanup b/cmdeploy/src/cmdeploy/postfix/lmtp_header_cleanup index 3c45f8d8..807b860c 100644 --- a/cmdeploy/src/cmdeploy/postfix/lmtp_header_cleanup +++ b/cmdeploy/src/cmdeploy/postfix/lmtp_header_cleanup @@ -1,3 +1,7 @@ -/^DKIM-Signature:/ IGNORE -/^Authentication-Results:/ IGNORE -/^Received:/ IGNORE +/^From:/ DUNNO +/^Message-Id:/ DUNNO +/^Chat-Is-Post-Message:/ DUNNO +/^Content-Type:/ DUNNO +/^Subject:/ DUNNO +/^Date:/ DUNNO +/.*/ IGNORE