What this DKIM checker tests
DKIM (DomainKeys Identified Mail) adds a digital signature to every email you send. The receiving server fetches your public key from DNS and checks that the signature matches, which proves the message came from your domain and was not changed on the way. Without DKIM, Gmail and Outlook see unsigned mail, and DMARC has only SPF to rely on.
DKIM records live at <selector>._domainkey.<yourdomain>. Most DKIM lookup tools make you type the selector first. This DKIM checker runs a DKIM lookup on 59 common selectors at once, or on the one you enter, then runs a DKIM record check on each key it finds:
- The DKIM record is valid: it holds a public key (
p=) that can be read, and usuallyv=DKIM1. - The key is not revoked. An empty
p=means the key was withdrawn, and mail signed with it fails. - Key type and length: RSA 2048-bit passes, 1024-bit is a warning, shorter or unreadable keys fail. Ed25519 keys are recognised.
- Flags: test mode (
t=y), SHA-1-only hashing and unknown tags are flagged. - CNAME delegation. Microsoft 365 and many sending services publish keys through CNAMEs; the DKIM checker follows them.
A wildcard DNS record that answers every selector is detected and ignored, so it cannot hide a missing key.
How DKIM works, in four steps
- You publish a public key as a DKIM record in your DNS, under a selector.
- Your mail server signs each email with the matching private key and adds a
DKIM-Signatureheader naming your domain (d=) and selector (s=). - The receiving server runs a DKIM lookup for
s=andd=to fetch your public key. - It checks the signature. If the signed headers and body are unchanged, DKIM passes; if the domain matches the From address, it also counts towards DMARC.
Check DKIM record: step by step
- Type your domain, or any email address on it, into the DKIM record checker above.
- Leave the selector empty to scan common selectors, or enter yours to check one DKIM record.
- Press Check DKIM. Read each key found and the checks under it.
- Fix anything red at your DNS host or in your email provider’s admin console, then run the DKIM test again.
To run a DKIM lookup from a terminal instead, use dig txt google._domainkey.yourdomain.com +short on macOS or Linux, or nslookup -type=txt google._domainkey.yourdomain.com on Windows, replacing google with your selector. Running your own mail server and need a key? Create one with the DKIM record generator.
How to find your DKIM selector
Open an email you sent from the domain. In Gmail choose Show original; in Outlook, View message source. Find the DKIM-Signature header: the value after s= is your DKIM selector. Common DKIM selectors by provider:
| Provider | DKIM selector | Record type |
|---|---|---|
| Google Workspace | google | TXT |
| Microsoft 365 | selector1, selector2 | CNAME to Microsoft |
| Zoho Mail | Chosen at setup, often zoho or zmail | TXT |
| Fastmail | fm1, fm2, fm3 | CNAME |
| SendGrid | s1, s2 | CNAME |
| Mailchimp | k1 | CNAME |
| Klaviyo | kl, kl2 | CNAME |
| Zendesk | zendesk1, zendesk2 | CNAME |
| HubSpot | hs1, hs2, often with your account ID (hs1-12345) | CNAME; enter the full selector |
Every selector in this table is in our DKIM check. The glossary explains DKIM selectors in more detail.
DKIM record example and tags
A Google Workspace DKIM record looks like this (the key is shortened):
google._domainkey.yourdomain.com TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA…"
| Tag | Meaning | Typical value |
|---|---|---|
v | Version. Optional, but must come first if present. | DKIM1 |
k | Key type. | rsa (default) or ed25519 |
p | The public key, in base64. Empty means revoked. | A long string |
h | Hash algorithms allowed. | Leave out, or sha256 |
t | Flags: y testing, s strict domain match. | Leave out once live |
s | Service type. | email or * |
n | Notes for people; ignored by receivers. | Optional |
What your DKIM check results mean
| DKIM checker result | What it means | Fix |
|---|---|---|
| 2048-bit key found | DKIM is published correctly. | Nothing; check signing is on. |
| 1024-bit key | Works, but below today’s recommendation. | Generate a 2048-bit key and rotate. |
| No DKIM key found | DKIM is not set up, or uses an uncommon selector. | Turn DKIM on, or enter your selector. |
| Key revoked (empty p=) | The key was withdrawn; signed mail fails. | Publish a new key or stop using that selector. |
| Key cannot be read | The DNS host split or mangled the long value. | Paste the record again as one value. |
| Test mode (t=y) | Receivers may treat your mail as unsigned. | Remove t=y. |
| DKIM passes but DMARC fails | The signing domain (d=) is not your From domain. | Set up custom DKIM on your domain for that tool. |
How to set up DKIM in Google Workspace
- In the Google Admin console, go to Apps, Google Workspace, Gmail, then Authenticate email.
- Pick the domain and press Generate new record. Keep the 2048-bit key length and the
googleselector. - Add the TXT record it shows at
google._domainkeyin your DNS. - Wait for DNS (usually under an hour), then press Start authentication. Until you do, mail is not signed even though the DKIM record checker finds the key.
How to set up DKIM in Office 365
- In the Microsoft Defender portal, go to Email and collaboration, Policies and rules, Threat policies, then Email authentication settings and the DKIM tab.
- Select the domain to see the two CNAME records for
selector1._domainkeyandselector2._domainkey. - Add both CNAMEs in your DNS, then switch on Sign messages for this domain with DKIM signatures.
- Run a DKIM check: it should find both Office 365 selectors through their CNAMEs.
Key length and rotation
Use 2048-bit RSA keys. Google generates them by default, and Microsoft 365 lets you rotate to a 2048-bit key in Defender. Keys under 1024 bits are no longer trusted. Rotating keys limits the damage if a private key ever leaks, and many teams rotate once or twice a year: publish the new key under a new selector, switch signing to it, and remove the old one a few days later. Microsoft 365 publishes two selectors, selector1 and selector2, so a key can be rotated without downtime.
Why DKIM matters for cold email
DKIM is the authentication check that survives forwarding, so it carries DMARC when SPF breaks. Gmail, Yahoo and Outlook expect it from every sender, and a new cold email domain without a DKIM record starts with a disadvantage before its first email. Check DKIM record status again after any change at your email provider. Check the other records with the SPF checker and the DMARC checker, or test all four on the free email deliverability tools page.
Or let PureMail do it: we turn on 2048-bit DKIM, SPF, DMARC and MX for every domain and connect your Google Workspace or Microsoft 365 inboxes to your sequencer, in about four hours.