Skip to content

Commit 0b39e7f

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

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

doc/doc-docbook/spec.xfpt

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42613,24 +42613,27 @@ 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-*: headers prefixed with &"="& so they are signed only
42627+
when present (allowing forwarders to add them).
42628+
The other headers listed are used whether or not they are present in the message.
4261942629
The default list is available for the expansion in the macro
4262042630
&"_DKIM_SIGN_HEADERS"&
42621-
and an oversigning variant is in &"_DKIM_OVERSIGN_HEADERS"&.
42631+
and a variant oversigning all listed headers is in &"_DKIM_OVERSIGN_HEADERS"&.
4262242632

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

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-
4263442637
.option dkim_timestamps smtp integer&!! unset
4263542638
This option controls the inclusion of timestamp information in the signature.
4263642639
If not set, no such information will be included.

src/src/miscmods/pdkim/pdkim.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
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:"\
33+
"Content-Description:=Resent-Date:=Resent-From:"\
34+
"=Resent-Sender:=Resent-To:=Resent-Cc:"\
35+
"=Resent-Message-ID:In-Reply-To:References:"\
3636
"List-Id:List-Help:List-Unsubscribe:"\
3737
"List-Subscribe:List-Post:List-Owner:List-Archive"
3838

0 commit comments

Comments
 (0)