Glossary / Email authentication
DKIM (DomainKeys Identified Mail)
DKIM, DomainKeys Identified Mail, is an email authentication standard that adds a cryptographic signature to each outgoing message. The sending domain publishes the matching public key in DNS under a selector name. Receivers check the signature to confirm the domain sent the message and that it was not altered.
Copy the syntax
DKIM public key record
s1._domainkey.example.com. 3600 IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqh...IDAQAB"Your email provider gives you the selector (s1) and the key.
Check it
dig s1._domainkey.example.com TXT +shortReplace s1 with your selector.
Have a name in mind?
.com $24.99 first year, renews at $24.99/yr. Other endings: not on sale yet.
In plain English
DKIM adds a signature to every email you send, so receivers can tell it really came from your domain and was not changed.
What to do
- Turn on DKIM in your email provider and copy its record.
- Add the record at your DNS host.
- Send a test and confirm DKIM shows pass.
- Defined in
- RFC 6376Source: RFC 6376
- Key location
- selector._domainkey.example.com TXTSource: RFC 6376
- Minimum RSA key size
- 1024 bits; 2048 recommended, RFC 8301Source: RFC 8301
- Gmail bulk sender rules
- DKIM requiredSource: Google sender guidelines
How do DKIM and DMARC work together?
DKIM proves a message was signed by a domain and not changed in transit. DMARC then checks that the signing domain matches the From address people see, and tells receivers what to do if it does not.
With SPF, these are the three records large mailbox providers expect from anyone sending to them.
What is a DKIM selector?
A selector is a label that lets one domain publish several DKIM keys, for example one per email service. The signature names its selector with s=, and the key lives at selector._domainkey under your domain.
Why does DKIM fail?
Common causes: the TXT record was pasted with extra spaces or quotes, the selector name is wrong, or a mailing list changed the message body after signing. Check the record with dig, then send a fresh test.
DKIM record examples
| Name | Type | Value | Note |
|---|---|---|---|
| s1._domainkey | TXT | v=DKIM1; k=rsa; p=MIIB… | Main mailbox provider |
| nl._domainkey | CNAME | nl.dkim.example.net. | Newsletter tool manages the key |
| s2._domainkey | TXT | v=DKIM1; k=ed25519; p=11qY… | Ed25519 key, RFC 8463 |
How do I set up DKIM?
Turn on DKIM in your email provider’s admin panel. It shows a selector and a record value.
Add the record at your DNS host exactly as shown, as TXT or CNAME. Save it.
Return to the provider and start signing. Its panel shows DKIM as active.
Send a test to Gmail and open Show original. DKIM shows PASS with your domain.
Questions about DKIM (DomainKeys Identified Mail)
Do I need DKIM if I have SPF?
Yes. SPF breaks when mail is forwarded, while a DKIM signature survives forwarding. DMARC needs SPF or DKIM to pass with alignment, and Gmail and Yahoo expect DKIM from bulk senders.
Can I have more than one DKIM record?
Yes, one per selector. Each sending service can sign with its own key under its own selector, and they do not conflict.
How long should a DKIM key be?
Use a 2048-bit RSA key where your DNS host allows the longer TXT value. RFC 8301 sets 1024 bits as the minimum for RSA.
How often should I rotate DKIM keys?
Rotate on a regular schedule and at once if a key may have leaked. Publish the new selector, switch signing to it, then remove the old record after messages signed with it have been delivered.
Put it to work on your own domain
See the first-year and renewal price before you pay.