From ce768407762a37419573ca0878667bb8da9a311f Mon Sep 17 00:00:00 2001 From: Notkea Date: Fri, 27 Sep 2019 23:53:46 +0200 Subject: [PATCH] DKIM: adjust default signed headers to allow forwarding Sign Sender, Resent-* and List-* headers only when present. Those headers are commonly added or altered when messages are forwarded manually or through mailing lists. The inclusion of their absence in the signature causes those messages to be rejected or marked as spam by the final recipient servers. --- src/src/pdkim/pdkim.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/src/pdkim/pdkim.h b/src/src/pdkim/pdkim.h index 0c9d46d011..5889eb2ba2 100644 --- a/src/src/pdkim/pdkim.h +++ b/src/src/pdkim/pdkim.h @@ -26,14 +26,14 @@ #include "../blob.h" #include "../hash.h" -#define PDKIM_DEFAULT_SIGN_HEADERS "From:Sender:Reply-To:Subject:Date:"\ +#define PDKIM_DEFAULT_SIGN_HEADERS "From:=Sender:Reply-To:Subject:Date:"\ "Message-ID:To:Cc:MIME-Version:Content-Type:"\ "Content-Transfer-Encoding:Content-ID:"\ - "Content-Description:Resent-Date:Resent-From:"\ - "Resent-Sender:Resent-To:Resent-Cc:"\ - "Resent-Message-ID:In-Reply-To:References:"\ - "List-Id:List-Help:List-Unsubscribe:"\ - "List-Subscribe:List-Post:List-Owner:List-Archive" + "Content-Description:=Resent-Date:=Resent-From:"\ + "=Resent-Sender:=Resent-To:=Resent-Cc:"\ + "=Resent-Message-ID:In-Reply-To:References:"\ + "=List-Id:=List-Help:=List-Unsubscribe:"\ + "=List-Subscribe:=List-Post:=List-Owner:=List-Archive" /* -------------------------------------------------------------------------- */ /* Length of the preallocated buffer for the "answer" from the dns/txt