What is DKIM and how do I set it up?
DKIM adds a cryptographic signature to each message. The receiver fetches your public key from DNS and checks the message wasn’t altered and really came from a server you authorized.
Selectors
Keys live at <selector>._domainkey.yourdomain.com. Each sending service uses its own selector (for example google, selector1, s1), so you can have many DKIM keys at once.
Setting it up
- In each service that sends as your domain, find the “authenticate domain” or DKIM setting.
- Publish the TXT or CNAME record it gives you, exactly as shown.
- Turn signing on in that service. Some don’t start signing until you click verify.
Testing
Send a message to a Gmail account, open it, choose “Show original” and look for DKIM: PASS with your domain. DKIM can’t be fully checked from DNS alone without knowing the selector, which is why the original-message view is the reliable test.
See exactly what your domain’s SPF, DKIM and DMARC look like, free.
Check my domainFrequently asked questions
Should I use 1024-bit or 2048-bit keys?
2048-bit is recommended where your provider and DNS host support it.