Why is DKIM failing when my DNS record looks correct?
Short answer
Start with the DKIM signature in the email that failed. It tells you which signing domain and selector the receiver checked. Your DNS record may belong to a different selector, or the sender may have skipped signing.
By Xpoudy ·
Read the signature first
Inspect the received DKIM-Signature and Authentication-Results where available. Note the d and s values, which identify the signing domain and selector. Query the corresponding public DNS entry according to your provider's setup. Make sure you are looking at the same domain as the actual message.
Separate DNS from the message path
If the correct key is published, inspect which service signed the message and what later relays did. A gateway or mailing workflow that modifies signed portions can invalidate the signature.
A different service may sign with its own domain, which may affect alignment even when its signature passes.
Verify the intended route
Send from the exact app and mailbox that showed the failure. Allow for DNS propagation when values changed. Test other legitimate senders separately before editing a shared setting.
Check a transition after key rotation
If you rotate a key, inspect messages sent during and after the change. Old mail can carry a different selector. Follow your provider's guidance on how long to keep an old public key available while queued legitimate messages are in transit.
An example
The vendor used selector b after rotating keys. The admin checked the DNS for selector a. Reading the actual signed message tells you which record needs attention.