Skip to content

Commit 1c6f5a8

Browse files
DKIM: Don't oversign missing Resent-*: and List-*: headers by default
1 parent 01298c7 commit 1c6f5a8

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

doc/doc-docbook/spec.xfpt

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42613,24 +42613,28 @@ If set, this option must expand to a colon-separated
4261342613
list of header names.
4261442614
Headers with these names, or the absence of such a header, will be included
4261542615
in the message signature.
42616+
42617+
A name can be prefixed with either an &"="& or a &"+"& character.
42618+
If an &"="& prefix is used, all headers that are present with this name
42619+
will be signed.
42620+
If a &"+"& prefix if used, all headers that are present with this name
42621+
will be signed, and one signature added for a missing header with the
42622+
name will be appended.
42623+
4261642624
When unspecified, the header names listed in
4261742625
&url(https://www.rfc-editor.org/rfc/rfc4871,RFC 4871) will be used,
42618-
whether or not each header is present in the message.
42626+
with Resent-*: and List-*: headers prefixed with &"="& so they are
42627+
used only when present, allowing list servers and forwarders to add
42628+
them).
42629+
The other headers listed are used whether or not they are present in the message.
4261942630
The default list is available for the expansion in the macro
4262042631
&"_DKIM_SIGN_HEADERS"&
42621-
and an oversigning variant is in &"_DKIM_OVERSIGN_HEADERS"&.
42632+
and a variant oversigning all listed headers is in &"_DKIM_OVERSIGN_HEADERS"&.
4262242633

4262342634
If a name is repeated, multiple headers by that name (or the absence thereof)
4262442635
will be signed. The textually later headers in the headers part of the
4262542636
message are signed first, if there are multiples.
4262642637

42627-
A name can be prefixed with either an &"="& or a &"+"& character.
42628-
If an &"="& prefix is used, all headers that are present with this name
42629-
will be signed.
42630-
If a &"+"& prefix if used, all headers that are present with this name
42631-
will be signed, and one signature added for a missing header with the
42632-
name will be appended.
42633-
4263442638
.option dkim_timestamps smtp integer&!! unset
4263542639
This option controls the inclusion of timestamp information in the signature.
4263642640
If not set, no such information will be included.

src/src/miscmods/pdkim/pdkim.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
#define PDKIM_DEFAULT_SIGN_HEADERS "From:Sender:Reply-To:Subject:Date:"\
3131
"Message-ID:To:Cc:MIME-Version:Content-Type:"\
3232
"Content-Transfer-Encoding:Content-ID:"\
33-
"Content-Description:Resent-Date:Resent-From:"\
34-
"Resent-Sender:Resent-To:Resent-Cc:"\
35-
"Resent-Message-ID:In-Reply-To:References:"\
36-
"List-Id:List-Help:List-Unsubscribe:"\
37-
"List-Subscribe:List-Post:List-Owner:List-Archive"
33+
"Content-Description:=Resent-Date:=Resent-From:"\
34+
"=Resent-Sender:=Resent-To:=Resent-Cc:"\
35+
"=Resent-Message-ID:In-Reply-To:References:"\
36+
"=List-Id:=List-Help:=List-Unsubscribe:"\
37+
"=List-Subscribe:=List-Post:=List-Owner:=List-Archive"
3838

3939
#define PDKIM_OVERSIGN_HEADERS "+From:+Sender:+Reply-To:+Subject:+Date:"\
4040
"+Message-ID:+To:+Cc:+MIME-Version:+Content-Type:"\

0 commit comments

Comments
 (0)