DKIM record monitoring
DoubleCheck checks the DKIM key behind a selector of your domain every day and alerts you when it disappears, is revoked or is too weak.
The problem
DKIM signs your outgoing mail with a private key. The matching public key sits in DNS under a selector name, and every mail service you use has its own selector.
Providers rotate those keys, and a DNS record is easily removed by mistake during a clean-up or a migration. When the public key is gone, receivers can no longer verify your signature, and nobody sees it happen.
Why it matters
A mail that fails DKIM is more likely to be flagged or rejected. Together with SPF, DKIM is what DMARC builds on.
1024-bit keys are still found in many domains. The advice is 2048 bits or more, and some receivers and audits ask for it.
How to check it manually
Look up the key of a selector with dig, here for the selector selector1:
dig +short TXT selector1._domainkey.example.com
You need to know the selector. It is in the header of a mail you sent (the s= value in the DKIM-Signature header) or in the admin portal of your mail service. Some services publish the key as a CNAME to their own DNS; that is followed when you look it up.
How DoubleCheck checks it
You enter the domain and the selector. DoubleCheck reads the key once a day, and tells you in plain words what is wrong, such as "DKIM key of selector selector1 is ~1024 bits; use at least 2048".
When you add domain checks for a domain, the discovery step looks for the selectors that are common for the mail provider of the domain, so you do not have to look them up. If it finds none, it asks you to enter your selector.
One check watches one selector. If your domain uses two selectors, which is common when keys rotate, add a check for each.
- Measures
- A DNS TXT lookup of selector._domainkey.your-domain. DoubleCheck reads the public key and its type and estimates the RSA key size.
- Runs
- Once a day. The interval is the same for every domain check: what it reads rarely changes.
- Status
-
- OK when the selector has an RSA key of at least the minimum length (2048 bits by default), or an ed25519 key.
- Warning when the RSA key is shorter than the minimum you chose, for example 1024 bits against 2048.
- Error when the RSA key is shorter than 1024 bits: receivers do not accept such a key.
- Error when the selector has no DKIM record, more than one, a revoked key (empty p=) or a key that cannot be read.
- Unknown, and no alert, when DNS itself does not answer.
- Options
-
- Minimum key length: 2048 bits by default. Choose 1024 bits to accept an older key.
- The selector is required: one check watches one selector.
All of it in one report
Want to see this next to the rest of the mail setup of a domain? The e-mail health report reads MX, SPF, DKIM, DMARC, blacklists, name servers and the domain registration at once and gives you a PDF with findings and advice, for €0.20.
Frequently asked questions
How do I find my DKIM selector?
Look at the DKIM-Signature header of a mail you sent: the s= value is the selector. Your mail provider also lists it in its admin portal. Microsoft 365 uses selector1 and selector2, and Google Workspace uses google by default.
Is a 1024-bit key a problem?
It still works, which is why this is a warning and not an error. The advice is 2048 bits, and most providers can generate such a key. If you cannot change the key yet, set the minimum key length to 1024 bits. A key shorter than 1024 bits is always an error: receivers do not accept it. The size is read from the length of the public key, so it is an estimate in steps of 256 bits.
Does DoubleCheck see the private key?
No. The private key stays with your mail provider. DoubleCheck only reads the public key that is published in DNS.
Why is this check only daily?
DKIM keys change when someone edits DNS or when a provider rotates a key, which is rare. Once a day finds a problem in time, and it keeps the cost of the check low.
Start monitoring with DoubleCheck
Start with €5 of free credit, no credit card required. Alerts by email, SMS, Slack, Microsoft Teams or Discord.