remove DKIM-Signature as Postfix will add this header

This commit is contained in:
Son NK 2019-11-21 14:59:57 +01:00
parent 64f7d04960
commit e0bf5245a3
1 changed files with 5 additions and 0 deletions

View File

@ -152,6 +152,11 @@ class MailHandler:
msg, "List-Unsubscribe-Post", "List-Unsubscribe=One-Click"
)
# remove DKIM-Signature as Postfix will add this header
if msg["DKIM-Signature"]:
LOG.d("Remove DKIM-Signature %s", msg["DKIM-Signature"])
del msg["DKIM-Signature"]
original_subject = msg["Subject"]
LOG.d(
"Forward mail from %s to %s, subject %s, mail_options %s, rcpt_options %s ",