DMARC Monitor

DKIM checker: test your DKIM record

DKIM (DomainKeys Identified Mail) is a digital signature your mail server adds to every message. Inboxes check it against a public key in your DNS, which shows the mail is from your domain and unchanged.

We try 29 common selectors. Know yours? Add it, comma-separated.

Free, no sign-up. We only read public DNS records.

yourshop.comExample check

DKIM is set up

One key is worth upgrading

  • google 2048-bit RSA key Valid
  • s1 1024-bit RSA key Worth fixing

The fix

Next time you rotate keys, make the new one 2048-bit and publish it at a new selector.

What is DKIM?

DKIM is a signature on each email you send. Receivers check it against a public key in your DNS.

You sign
Your mail server signs the headers and body with a private key and adds a DKIM-Signature header. It names your domain in d= and the key in s=, the selector.
They check
The receiver reads the public key from DNS at selector._domainkey.yourdomain.com and tests the signature. If the mail was changed on the way, it fails.
DMARC uses it
DMARC passes when DKIM or SPF passes and aligns. For DKIM, d= must match your From domain. Check the whole set with the DMARC checker.

A DKIM-Signature header, shortened

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=example.com; s=google;
 h=from:to:subject:date;
 bh=2jUSOH9NhtVGCQWNr9BrIAPreKQjO6Sn7XIkfJVOzv8=;
 b=AuUoFEfDxTDkHlLXSZEpZj79LICEps6eda7W3deTVFOk4yAUoq...

Here the selector is google, so the key sits at google._domainkey.example.com. h= lists the signed headers and b= is the signature.

What a DKIM record looks like

One DNS record on the host selector._domainkey.yourdomain.com, made of tags.

v=DKIM1
The version. Optional, but if it is there it comes first.
k=rsa
The key type: rsa or ed25519. RSA is the default.
p=
The public key. An empty p= means the key was revoked, so mail signed with it fails.
t=y
Optional. Marks the domain as testing DKIM. Remove it once DKIM works.

Example TXT record at google._domainkey.example.com

v=DKIM1; k=rsa; p=MIIBIjANBgkq...

The real p= value is one long string, about 400 characters for a 2048-bit key. Some senders give you a CNAME to their own record instead. The checker follows it.

How to find your DKIM selector

Send yourself a message from the account you want to check, then open its headers and read the s= tag in the DKIM-Signature header. In Gmail, use the three-dot menu and Show original. In Outlook, use File, Properties, or View message source.

Or paste the whole header into the email header analyzer: it reads the selector and whether DKIM passed. Type that selector into the box at the top. No access to a message? We try 29 common ones for you.

Where the common senders usually put it

Google Workspace
google
A TXT record you generate in the Admin console under Apps, Google Workspace, Gmail, Authenticate email. 2048-bit.
Microsoft 365
selector1, selector2
Two CNAMEs that point to onmicrosoft.com. Turn DKIM on in the Defender portal, Email authentication settings.
Mailchimp
k1 (and k2, k3)
CNAME records.
SendGrid
s1, s2
CNAME records.
Amazon SES
three random-looking names
CNAME records from Easy DKIM.
Postmark
a dated name ending in pm
Shown in your sender signature.
Zoho Mail
zoho
Or a name you choose when you set it up.
SendWP
sendwp
Newer setups can use a.

Setting DKIM up for the first time? The DKIM record generator gives the host name and value for each sender, or makes a key pair for your own server.

How to fix each DKIM result

The results the checker gives, and what to do about each.

No DKIM key found

Worth fixing

The selector is unknown, or DKIM is off. Find the selector in a message header, turn on DKIM at your provider, then publish its record.

No key at a selector you typed

Needs a fix

Check the spelling against the s= tag, and that the record is at selector._domainkey.yourdomain.com.

Key can't be read

Needs a fix

It was pasted with quotes or line breaks, or the p= key is cut off. Copy it again from your provider and paste it whole.

Key too short

Needs a fix

RSA keys under 1024 bits count as unsigned. Make a new 2048-bit key, publish it at a new selector, switch signing to it, then retire the old one.

1024-bit key

Worth fixing

It works, but 2048-bit is the current advice. Switch the next time you rotate keys.

Empty p=

Worth fixing

The key was revoked. Fine if you no longer sign with that selector. If you do, publish its current key.

DKIM passes, DMARC fails

Needs a fix

The signing domain (d=) is your sender's, not yours, so it does not align. Set up custom DKIM at the sender so it signs as your domain.

Not sure which sender fails?

Your DMARC reports name every source and whether its DKIM passed. The DMARC XML report reader turns them into plain English. For the other two parts, use the DMARC record generator and the SPF record generator, or see SPF record examples. No DKIM record yet? The DKIM record generator gives you the host and value to paste.

Questions

What is DKIM?

DKIM (DomainKeys Identified Mail) is a digital signature on your email. Your mail server signs each message with a private key, and the receiving server checks the signature with a public key published in your DNS. A pass shows the message came from a server your domain allows and that the signed parts were not changed on the way.

What is a DKIM selector?

A selector is the label that says which DKIM key signed a message. You can read it as the s= tag in the message's DKIM-Signature header, and the public key sits in DNS at selector._domainkey.yourdomain.com. A domain can have many selectors, usually one per sender, which also lets you rotate keys without a gap.

How do I check my DKIM record?

Enter your domain in the checker above, with your selector if you know it. It reads the record at selector._domainkey.yourdomain.com and tests the key: its type, its length and whether it has been retired. You need the selector because DNS cannot list a domain's DKIM keys, so the checker tries the common ones and any you add.

What is the difference between DKIM, SPF and DMARC?

SPF lists the servers allowed to send for your domain, DKIM signs each message, and DMARC tells receivers what to do when mail fails both. DMARC passes when SPF or DKIM passes and the domain it checked matches your From address. That match is called alignment.

Is a 1024-bit DKIM key still OK?

It still works, but 2048-bit is the current advice. Receivers treat RSA keys shorter than 1024 bits as unsigned, so those fail outright. When you next rotate keys, make the new one 2048-bit: Google Workspace and Microsoft 365 both offer it. If your DNS host rejects the long value, it can be split into two quoted strings.

Why does DKIM fail?

Usually the key is not published at the selector the message names, the record was pasted with quotes or line breaks, or the key was retired. A message can also fail if something changed it after signing, such as a mailing list adding a footer. Read the s= tag in the failing message's headers, then enter that selector above.

Do I need DKIM if I have SPF?

Yes. DMARC needs SPF or DKIM to pass, but SPF breaks when a message is forwarded and DKIM usually survives. Google and Yahoo have also required SPF, DKIM and DMARC from bulk senders since 2024. Having both means one can fail without your mail being rejected.

Want SPF, DMARC and the rest graded too? Run the email authentication check. Next in line: what to do after DMARC p=none and the BIMI checker, which needs DMARC enforced. Not sure who handles your mail? The MX lookup names your provider and the selector it signs with. Used to MXToolbox's lookups? See the MXToolbox alternative.