<domain>
A regular signature protects existing headers: a signed Subject cannot be changed. But a second Subject can be added — and the signature stays valid, because the first one is in place. Mail clients usually display the last one.
This is how a message with a valid signature is tampered with. The line closes this road: the listed names are put into the signature one extra time, and the receiver understands that there must be no more headers with that name. A second one appeared — the signature does not match.
The manual calls this protection against reuse of a signed message. Headers listed here and present in the message are also signed in the usual way.
Start with three: from, to, subject. This is the set from the manual’s example and exactly the headers whose substitution changes the meaning of the message for the reader.
Add reply-to if you use it. A second Reply-To diverts replies to someone else’s address, while the message looks authentic.
Do not list everything. Each name is added to the signature one extra time; it makes sense only for headers that are shown to the reader or control replies.
# a second From or Subject now breaks the signature <domain *> dkim-disallow-adding-headers from,to,subject,reply-to</domain>
what people get wrong and how it ends2 mistakes▶
our experience
§ 3.3.10.29
2 relations
arc-oversigned-headers<domain>The same for the forwarding signature. § 3.3.10.38
pmta show settings gmail.com/vmta1 | grep -i disallow-adding grep -i 'DKIM-Signature' /var/log/pmta/pmta.log | tail -3
3 articles
◇Do not send what will fail the check at the receiverThe node checks the SPF of its own mail before sending: if it fails, it bounces the message without waiting for someone else’s refusal.◇How the node signs messages and chooses a keyThe key is chosen by the sending domain from the headers, going through the declarations from top to bottom.◇A message header with which the submitting side adjusts the signatureFive parameters in X-DKIM-Options: selector, domain, signing identity, query method and key list.