Summary
- RFC 6376, September 2011, defines DKIM: a domain signs selected header fields and a canonicalised body with a key it publishes itself.
- The design starts from an awkward admission — “some mail systems modify email in transit, potentially invalidating a signature” — so it signs a normalised form and publishes the normalisation rule next to the key.
- The alternative is on the table too: other signers “demand that any modification of the email, however minor, result in a signature verification failure”. DKIM chose the smaller, checkable fact.
Email is a draft that keeps being edited
Between the Send button and the inbox, a message is handled by submission servers, relays, list expanders, spam filters and at least one footer nobody asked for. Header fields get added, folded, reordered and re-cased. Bodies get re-encoded, re-wrapped and appended to. What lands is not the artefact you wrote. It is the artefact that survived.
A signature over the literal bytes would fail almost immediately — rigorous, beautiful and useless. DKIM’s answer is to sign a normalised form of the message and to publish the normalisation rule next to the key, so that any verifier can reconstruct exactly what was signed without asking anyone’s permission.
Two canonicalisations, two philosophies
Simple canonicalisation barely touches the message: the bytes you signed stay close to the bytes that arrive. Relaxed canonicalisation lower-cases header names, unfolds continuation lines, collapses runs of whitespace and drops the trailing empty lines that mail systems love to add.
The choice is philosophical, and it is declared in the signature itself. Simple says: I am authenticating an artefact. Relaxed says: I am authenticating a message that has passed through infrastructure I do not control, and I would rather be checkable than exact.
What is signed, and where the key lives
The signature names the header fields it covers, hashes the canonicalised body and signs the result. A verifier then fetches the public key from the sending domain’s DNS, at a name built from a selector and the domain itself.
Selectors are the small piece of engineering that makes the whole thing survivable. A domain publishes a new key under a new selector, signs new mail with it, and leaves the old selector in place so that messages already in flight still verify. Rotation without a flag day.
What DKIM never promised
A passing signature does not mean the message is unchanged, that the visible sender is honest, or that the signing domain has anything to do with the name in the From line. It means one thing: a domain holding that key took responsibility for this message.
That claim is deliberately narrower than what readers assume. Forwarded mail, mailing lists and replays break or weaken it. A domain that signs everything it sends — including the phishing that spoofs it — buys no judgement about any particular message. Which is why the policy layer had to be invented afterwards, and why it has been growing ever since.
The lesson about authenticating facts
DKIM authenticates a narrow fact: this domain handled this message. It does not authenticate intent, honesty, identity or worth. That restraint is why it survived a decade of abuse it was never designed to stop, and why it is still the layer everything else is built on.
The general lesson is a design discipline, not an email one. Specify the smallest deterministic fact you can verify locally. Publish the rule that defines it, in the same place as the key, so that nobody has to ask an authority whether the check passed. Then let policy documents argue about what the fact is worth — and expect them to keep arguing, because that argument never ends and the check never changes.
Systems that try to authenticate everything at once produce a rulebook nobody can verify. Systems that authenticate one small thing get deployed.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






