Free tool
DKIM checker: find and test your DKIM key
Enter a domain, and your selector if you know it, to find the DKIM public key and check its length. Without a selector, the checker tries about 20 common ones, including those Google Workspace and Microsoft 365 use.
What DKIM does
DKIM, DomainKeys Identified Mail, lets the server that sends your email sign each message with a private key. The signature travels in a DKIM-Signature header, which names the signing domain in d= and a selector in s=. The receiver fetches the matching public key from DNS, at selector._domainkey followed by the domain, and uses it to confirm the signature. The standard is RFC 6376.
A valid signature proves two things: the message was signed by someone holding your private key, and the signed headers and body haven't changed since. Because it's tied to the message rather than the server it came from, DKIM usually survives forwarding, where SPF often breaks.
DKIM also matters for DMARC. Many sending services use their own domain for bounces, so SPF passes for them rather than for you. A DKIM signature with your domain in d= is then the only thing that lets DMARC pass.
Selectors, and how the checker finds yours
A selector is a short label the sender chooses, such as google or selector1. One domain can publish as many keys as it likes, each under its own selector, so each service that sends for you can sign with a key of its own.
DNS has no way to list every selector a domain uses. So the checker does one of two things:
- If you enter a selector, it checks only that one.
- If you leave the field empty, it tries about 20 common selectors: google for Google Workspace, selector1 and selector2 for Microsoft 365, fm1 and fm2 for Fastmail, protonmail for Proton, zoho, and general ones such as default, mail, dkim, k1, s1, s2, sig1, pm, mandrill and cm.
When none of those has a key, the result is info, not a fail. Your key may well exist under a name the checker didn't try. To find it, open an email you've sent from the domain and view the full headers: Show original in Gmail, or the message source in Outlook and most other mail apps. Find the DKIM-Signature header, read the value after s=, and enter it in the selector field.
Reading the result
A DKIM record is a TXT record holding a few tags: v=DKIM1 to mark it, k= for the key type, which is rsa unless it says otherwise, and p= for the public key itself. The checker reads the key and judges it by type and length:
- A 2048-bit RSA key passes. It's the length most providers now generate, and the one RFC 8301 says signers should use.
- An Ed25519 key passes. It's a newer, much shorter key type. Support among receivers is still patchy, so it's wise to sign with an RSA key as well.
- A 1024-bit RSA key gets a warning. It's the minimum RFC 8301 allows and many receivers still accept it, but it's weaker than it should be.
- An RSA key shorter than 1024 bits fails. RFC 8301 tells receivers to treat signatures made with it as invalid, and short keys can be broken with computing power that's now cheap to rent, after which anyone could sign mail as you.
- An empty p= fails. The standard defines it as a revoked key, so every signature that points at this selector fails.
Fixing what it finds
- No key under the common selectors: look for a DKIM-Signature header in a message you've sent. If there is one, enter its selector and check again. If there's none, your email service isn't signing yet, so switch DKIM on in its settings and publish the record it gives you.
- A weak key: generate a new 2048-bit key under a new selector, publish it, then switch signing over. Leave the old record in place for a few days so messages already on their way still verify, then delete it.
- A revoked key: if your service still signs with this selector, every message fails DKIM. Generate a fresh key in the service and publish it. If you retired the selector on purpose, check that the service is signing with a live one.
- A key your DNS host won't accept: 2048-bit keys are longer than the 255 characters one TXT string can hold. Split the key into several quoted strings within the same record, or use a DNS host that does it for you.
A published key proves receivers could verify your mail. It doesn't prove your service is signing with it. Send yourself a message and look for dkim=pass with your own domain beside it in the Authentication-Results header.
Setting up DKIM with common providers
- Google Workspace: in the Admin console, go to Apps, Google Workspace, Gmail, then Authenticate email. Generate a 2048-bit key, publish the TXT record at google._domainkey on your domain, wait for it to appear, then click Start authentication. Until you do, Google signs your mail with its own domain, which doesn't align with yours for DMARC.
- Microsoft 365: publish the two CNAME records Microsoft gives you, at selector1._domainkey and selector2._domainkey, which point at keys Microsoft hosts. Then turn on DKIM signing for the domain in the Microsoft Defender portal. Because Microsoft holds both keys, it can rotate them for you.
- Sending services: most give you one or more CNAME or TXT records to add. Publish them exactly as given, then confirm in the service that signing is active, since many keep signing with their own domain until you do.
Rotating keys now and then limits the damage if one leaks. Publish the new key under a new selector, switch signing, then retire the old one, which is the same order as replacing a weak key.
DKIM on domains used for cold email
Every domain that sends needs its own DKIM key, signed with the same domain that appears in the From line. The domains Boost Sales AI sends your cold email from are separate ones that it runs and keeps healthy. Nothing cold ever leaves your own domain, so its keys and the mail your colleagues send are left alone. Alongside sending, it finds your buyers, checks each address, writes every email, follows up and sorts the replies. Before you pay anything, onboarding shows you your buyers and sample emails free.
Questions people ask
Why can't the checker find my DKIM record?
Usually your service uses a selector outside the common list. Find s= in the DKIM-Signature header of a sent email and enter it. If you have no such header, DKIM isn't switched on yet. A typo in the record name, such as a missing ._domainkey, is another frequent cause.
Is a 1024-bit DKIM key still acceptable?
It still works with most receivers, and Yahoo's sender requirements ask for keys of at least 1024 bits. But 2048 bits is the recommended length, so plan to replace a 1024-bit key under a new selector when you next touch your DNS.
Can one domain have several DKIM keys?
Yes, one per selector. That's normal when several services send for the same domain, such as your mailbox provider and a newsletter tool, and it's how keys are rotated without a gap.
Does DKIM keep my emails out of spam?
Not on its own. It proves who sent a message and that it wasn't changed, which receivers need before they'll trust your domain at all. Whether a signed message reaches the inbox still depends on your reputation, your list and the message.
The check passes, but my emails show dkim=fail. Why?
Common causes are a published key that doesn't match the private key your service signs with, often after a key was regenerated, or a message changed in transit, for example by a mailing list or a gateway that adds a footer. Compare the selector in the failing header with the one you checked.
More free tools
See who would buy from you
Type your domain and see your buyers and the emails we'd send them, free. If you go ahead, it's $99 a month or $990 a year.
- Nothing is sent until you approve
- 30-day money-back guarantee