Original at signing
Subject:·Meeting·notes↵
Simple and relaxed algorithms define which message formatting changes affect the signed bytes.
FOLLOW THE SIGNED DATA · FICTIONAL MESSAGES AND DNS
Header and body rules are chosen independently. Only the defined formatting differences disappear.
Subject:·Meeting·notes↵
subject:⇥Meeting··notes·⇥↵
subject:Meeting·notes↵
SHA-256: IuBUpoLLS/1InixqkGBzkPSJ…subject:Meeting·notes↵
SHA-256: IuBUpoLLS/1InixqkGBzkPSJ…Visible byte notation: · = SP, ⇥ = HTAB, ↵ = CRLF. These markers are labels, not extra signed characters.
A simple empty body becomes one CRLF; a relaxed empty body is zero octets. Both modes ignore trailing empty lines. Relaxed body rules do not lowercase text or allow arbitrary word changes.
Canonicalization defines the exact bytes used for signing. Header and body modes can differ.
Bounded ASCII/CRLF teaching examples. These are not a complete mail parser, DKIM implementation or DNS lookup service. Shortened hash/key/signature labels expand to actual values in the fixture details.
Both sides must obtain the same signed input.
Key idea: Header and body canonicalization are selected separately.
Header and body canonicalization are selected separately.
Examples are illustrative. Consult the linked RFC and its errata for implementation details.
Mail transport moves a message between servers. The message format describes its contents. Authentication adds checks; it does not make every message safe.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.