What is DKIM (DomainKeys Identified Mail)?
A cryptographic signature added to each message and checked against a public key published in DNS.
How it works in practice
The sending server signs chosen headers and the body with a private key; the receiver fetches the matching public key from a TXT record at selector._domainkey.domain and verifies the signature. A valid signature proves the message wasn't altered and that the signing domain authorised it. Unlike SPF it survives forwarding, because it travels with the message.
What a DKIM signature contains
The sending server adds a DKIM-Signature header to each message. It names the signing domain (d=), the selector (s=), the headers that were signed (h=), a hash of the body (bh=) and the signature itself (b=). The receiver looks up the public key at selector._domainkey.domain in DNS and checks that the signature matches the message.
What DKIM proves, and what it does not
A valid signature shows that the signing domain authorised the message and that the signed parts were not changed on the way. It does not say the message is wanted or that the domain has a good reputation. It also does not, by itself, tie the signature to the visible From address: that link is what DMARC alignment adds.
Practical points
Use 2048-bit keys, sign with a domain you control rather than your platform's domain so the signature aligns, and rotate keys from time to time by publishing a new selector. DKIM usually survives forwarding, but mailing lists that change the subject or add a footer can break the body hash.
The common mistake
Signing with the email platform's own domain instead of your domain, so DKIM passes but doesn't align with your From address.
Frequently asked questions
What happens if DKIM fails?
The receiver records dkim=fail. With a DMARC policy of none the message is still delivered, but a failing signature plus a failing SPF result makes DMARC fail, and that can lead to filtering or rejection.
How many DKIM keys can a domain have?
Many. Each sending service usually has its own selector, so a domain can have a separate key for its mailbox provider, its sending platform and its CRM.
Is 1024-bit DKIM still accepted?
Receivers still validate it, but 2048-bit is the current recommendation. Some DNS hosts need the longer key split into two quoted strings.
Check it yourself
Related terms
Not sure whether this is what's hurting your inbox placement? A free deliverability review finds the real cause.
How we help: Consulting · Private infrastructure · Managed mailboxes · Monthly support