Loading...
Loading...
DKIM signs every outbound message with a cryptographic signature anchored in DNS, proving the message came from your domain and was not modified in transit.
Without DKIM, SPF alone cannot survive forwarding. A user auto-forwards your mail to Gmail. The forwarded message now comes from the forwarder's IP, so SPF fails. With no DKIM signature to anchor the identity, DMARC also fails, and the message goes to spam. DKIM is also a hard requirement for bulk senders under the Google and Yahoo 2024 rules. For domains using third-party ESPs, DKIM often is set up but not published at the correct selector, so scanners report it as missing.
Use 2048-bit RSA keys (rsa-sha256) as the default in 2026. M3AAWG recommends rotating every six months, quarterly if possible. Use date-based selector names like `s2026q2` or `dkim202604` instead of generic labels like `key1`, so future audits show at a glance when a key was deployed. Keep old selectors live for 24 to 48 hours after rotation because in-flight messages still carry the old signature. Each mail stream (transactional, marketing, support) should sign with its own selector so you can revoke one stream without breaking others.
DKIM records live at `<selector>._domainkey.yourdomain.com`. The selector is chosen by each sending provider - Google Workspace uses `google`, Microsoft 365 uses `selector1`/`selector2`, Amazon SES picks a token, SendGrid uses `s1`/`s2`. Send a test message and read the received headers to find the selector actually used.
dig +short TXT google._domainkey.yourdomain.com # Google Workspace defaultSend a test to yourself, open "View Original" in Gmail, read the DKIM-Signature header's s= taghttps://www.mail-tester.com/ # scores SPF+DKIM+DMARC+alignment2048-bit is the modern default and what M3AAWG, Google, and Microsoft all use. 4096-bit works but some receiving systems truncate TXT records above a few hundred bytes. Do not use 1024-bit.
Every six months at minimum, quarterly if you have the automation. Use dated selectors so the rotation history is visible in DNS. The transition window (both keys live at once) should be at least 48 hours.
Yes - a message can carry several `DKIM-Signature` headers. Any one that aligns with the From domain satisfies DMARC. This is useful when a message transits multiple services each of which want to sign.
Applied the configuration change? Run a live scan to confirm the vulnerability is patched.