Skip to content

Commit ad1bde6

Browse files
serivlvicainne
authored andcommitted
Add SignHeaders From
From the man opendkim.conf: OversignHeaders (dataset) Specifies a set of header fields that should be included in all signature header lists (the "h=" tag) once more than the number of times they were actually present in the signed message. The set is empty by default. The purpose of this, and especially of listing an absent header field, is to prevent the addition of important fields between the signer and the verifier. Since the verifier would include that header field when performing verification if it had been added by an intermediary, the signed message and the verified message were different and the verification would fail. Note that listing a field name here and not listing it in the SignHeaders list is likely to generate invalid signatures.
1 parent a9f2ab1 commit ad1bde6

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

spec/spec_helper.rb

Lines changed: 0 additions & 3 deletions
This file was deleted.

templates/etc/opendkim.conf.epp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ InternalHosts refile:<%= $configdir %>/TrustedHosts
125125
# and the verifier. From is oversigned by default in the Debian pacakge
126126
# because it is often the identity key used by reputation systems and thus
127127
# somewhat security sensitive.
128+
SignHeaders From
128129
OversignHeaders From
129130

130131
SubDomains <%= $subdomains ? { true => 'yes', false => 'no', default => $subdomains } %>

0 commit comments

Comments
 (0)