DKIM uses public-key cryptography to verify messages haven't been altered and are associated with the signing domain.
Key sizes: RFC 8301 recommends 2048-bit RSA as the standard. Ed25519 exists but major providers don't verify it yet.
The DKIM-Signature header contains:
d=: Signing domain (used for DMARC alignment)s=: Selector namec=: Canonicalization (userelaxed/relaxed)h=: Signed headers (must includefrom)bh=: Body hashb=: Signature
Key rotation: Every 6–12 months. Publish the new key while keeping the old one active for 1–2 weeks.
Common DKIM failures:
- Selector-DNS mismatch
- Body modification by mailing lists
- 2048-bit keys exceeding DNS string limits
- Missing
fromin theh=tag
Sign in to keep track of what you have read.