<domain>
Between your node and the mailbox, a message passes through other people’s servers, and they reformat headers: wrap long lines, collapse spaces, change the case of names. The content does not change, but the bytes do — and the signature over them breaks.
Canonicalization decides what counts as a change. The default relaxed brings headers to a common form before signing and before verification: the name in lower case, spaces collapsed into one, the line wrap removed. simple forgives nothing: any byte out of place — and the signature does not match.
The pair to this line is dkim-body-canon: the same fork for the message body. In the signature they stand side by side, in the c= field, separated by a slash.
Leave relaxed. It is the default both here and in the vast majority of other people’s configurations.
simple — only for a controlled path. For example, between two of your own nodes, where there are no intermediaries.
Different values for body and headers are allowed. Usually relaxed is taken for both, but the pair relaxed/simple does occur — it is visible directly in the signature, in the c= field.
# the default is left deliberately: the message's path is beyond our control <domain *> dkim-headers-canon relaxed dkim-body-canon relaxed </domain>
what people get wrong and how it ends2 mistakes▶
our experience
our experience
1 relation
dkim-sign<domain>Does nothing until signing is enabled. § 3.3.10.23
pmta show settings gmail.com/vmta1 | grep -i canon 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.