Tools
DKIM Checker
A DKIM record publishes the public key that receivers use to verify signed email. Enter the selector used by your email provider to check the TXT record at selector._domainkey.domain.
Run the check
Enter the domain and the DKIM selector from your email provider. The record is published at selector._domainkey.domain.
What you get
- The DKIM TXT record for the selector.
- The key type and whether the public key is present.
- A warning if the key is revoked or missing.
- Links to SPF and DMARC checks.
How DKIM signing works
The sending service hashes selected headers and the body, signs the hash with a private key, and adds a DKIM-Signature header that names the domain and the selector. The receiving server uses those two values to fetch the public key and verify the signature.
Because the signature covers the body hash, a message that is modified in transit fails verification. Mailing lists that add footers or rewrite subjects are the usual cause, which is why some lists re-sign messages and some break DKIM entirely.
What a selector is
The selector is the first label of the DNS name that holds the key: selector._domainkey.example.com. Providers choose their own values, from a fixed name like default to a date like 20230601. The value is in the signature, so the receiver always knows where to look.
Multiple selectors are normal. They let a provider rotate keys without invalidating messages already in flight, and they let several services sign for the same domain with independent keys.
Reading the key record
A DKIM key record is a set of tags. v names the version, k the key type, and p carries the public key in base64. An empty p means the key was revoked: signatures made with it must fail. A record without p at all is malformed.
The t and s flags add restrictions, and h lists the allowed hash algorithms. Most records need only v, k and p. A 1024-bit key still verifies, but 2048-bit is the common baseline today.
Rotation and revocation
To rotate, publish the new selector with its public key before you start signing with it. Once the new signatures are flowing, wait longer than any message can stay in a queue, then remove the old record. Doing it in the other order breaks mail that was signed with the old key and is still being delivered.
To revoke a compromised key immediately, set p to an empty value and keep the record. That is faster than deleting the record, because resolvers may still hold a cached copy of the key for its TTL.
Date-based selectors make rotation auditable: the selector records when the key was created, and old records are easy to identify and remove. Whatever naming you use, keep the public key record published for as long as messages signed with it can still be delivered.
Frequently asked questions
What is a DKIM selector?
It is the label your provider uses in the DNS name selector._domainkey.example.com. It is often something like default, google or selector1.
Where do I find the selector?
In your email provider DKIM settings. The selector is not the domain name and is not the same for every provider.
What does an empty p= mean?
It means the key has been revoked. Receivers cannot verify signatures with that selector until you publish a new key.
Why does a valid DKIM record still fail verification?
The key can be correct and the signature still fail: the message may have been modified in transit, the selector in the signature may not match the record you checked, or the signing domain may differ from the one you expect.
Can I guess a selector?
Only by trial. Providers use fixed and date-based selectors, and common ones are listed as suggestions, but a selector is not discoverable from DNS. Check the signature header of a real message or the provider configuration.
Does DKIM alone prevent spoofing?
No. DKIM proves that a message carrying a valid signature was signed by the key holder. A spoofed message with no signature simply fails, and without DMARC the receiver has no instruction to reject it.
What does a revoked key mean?
The p tag exists but is empty. The domain owner withdrew the key, so every signature made with it must fail. If mail still relies on it, the sender needs a new selector and key.