Definition
What it is
DKIM (DomainKeys Identified Mail) is a standard defined in RFC 6376 that adds a cryptographic signature to email messages [1]. The signature is carried in the DKIM-Signature header and covers the body and selected headers. The domain publishes the public key in a DNS record under a selector, and the receiver uses it to verify the signature.
Why it matters
Unlike SPF, which depends on the originating IP, DKIM travels with the message. If a forwarder modifies the body or adds headers, the signature can break, but under normal conditions it survives [2]. That persistence lets DMARC rely on DKIM to validate messages that have passed through mailing lists.
How it works in practice
The holder generates a key pair and publishes the public key in a TXT record under selector._domainkey.example.com. Each message leaves with a DKIM-Signature header containing the selector, algorithm, and signature [3]. The receiver retrieves the public key, recomputes the hash, and compares. If they match, the message is authentic and unaltered.
Connections
- spf — checks the IP; DKIM checks content integrity
- dmarc — uses DKIM alignment to enforce policy
- txt-record — the record where the public key is published
- email-spoofing — the attack DKIM helps detect
- selector — the prefix that allows key rotation without breaking verification
Common mistakes
- Rotating without updating DNS. If the private key changes and the public key does not, every signature fails.
- Signing too few headers. An attacker could alter unsigned headers.
- Not anticipating in-transit modifications. A footer added by a mailing list breaks the body signature.
- Using too-short keys. 1024-bit keys are considered weak; 2048 bits or more are recommended.
Evidence
Etymology
Origin: acronym
DomainKeys Identified Mail — mail identified by domain keys
Domain(root): domainKeys(root): keysIdentified(root): identifiedMail(root): mail
Morphology
Variants
Typographical errors
DKMdkim
Semantic network
● broader ● narrower ● related
Broader
email-authentication
Narrower
dkim-signature
Related
- SPF
- DMARC
- TXT Record
- Email spoofing
selector
Antonyms
unsigned-email
Used in the garden
Sources
Crocker, D., Hansen, T., & Kucherawy, M. (2011). DomainKeys Identified Mail (DKIM) Signatures. RFC 6376. https://www.rfc-editor.org/rfc/rfc6376.html
Slavin, B. (2026). SPF vs DKIM vs DMARC: What's the Difference and How Do They Work Together?. DMARC Report. https://dmarcreport.com/blog/spf-vs-dkim-vs-dmarc-difference-explained-2026/
Twilio (2026). DKIM (DomainKeys Identified Mail). https://static1.twilio.com/
CSC (2026). Domain Security Report 2026. https://www.cscdbs.com/en/resources/domain-security-report-2026/