Compare commits

...

2 Commits

Author SHA1 Message Date
feld
056be51560 Update cmdeploy/src/cmdeploy/postfix/lmtp_header_cleanup
Co-authored-by: holger krekel  <holger@merlinux.eu>
2026-05-13 17:07:08 -07:00
Mark Felder
a4bc665f59 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
2026-05-13 15:24:25 -07:00

View File

@@ -1,3 +1,23 @@
/^DKIM-Signature:/ IGNORE
/^Authentication-Results:/ IGNORE
/^Received:/ IGNORE
# List of headers for incoming messages
# that must be retained for functionality and compatibility reasons
/^From:/ DUNNO
/^Message-Id:/ DUNNO
/^Chat-Is-Post-Message:/ DUNNO
/^Content-Type:/ DUNNO
# For receiving clear-text messages (still supported in May 2026)
/^Subject:/ DUNNO
/^Date:/ DUNNO
# Senders might support Autocrypt 1 but not RFC9788 (Header Protection)
/^Autocrypt:/ DUNNO
# SecureJoin V2 protocol headers (for backward compatibility)
/^Secure-Join:/ DUNNO
/^Secure-Join-Invitenumber:/ DUNNO
/^Secure-Join-Auth:/ DUNNO
/^Secure-Join-Fingerprint:/ DUNNO
/^Secure-Join-Group:/ DUNNO
# Ignore all other headers
/.*/ IGNORE