DKIM check: is my signing key published, and is it any good?

Last updated 8 November 2026

DKIM is a digital signature added to every message you send. The receiver fetches your public key from DNS and checks the signature against it, which proves the message was not changed on the way and that your domain's key signed it. This page finds the key, tells you in plain words whether it is sound, and reads the DKIM signature from a real message so you can see what is actually happening.

Look up a DKIM key

A DKIM key is found by its selector, a name you cannot work out from the domain. If you leave it empty we try about forty names that real senders use. If you know it, enter it for a precise answer. Only the domain and selector are looked up in DNS.

The surest way to know which key is in use is to look at a message you actually sent. Open it in a mail app that can show the original source (in Gmail: open the message, choose the ⋮ menu, then Show original), copy the header, and paste it here. It is read entirely in your browser; nothing you paste is sent anywhere. We only look up a key if you click the button on a result.

How DKIM works, in six steps

  1. You generate a pair of keys. The private key stays with whatever sends your mail (your provider or your server). The public key goes in your DNS.
  2. The public key is published as a TXT record at selector._domainkey.yourdomain.com. The selector is just a label, so you can have several keys at once.
  3. When a message is sent, the sender signs chosen headers and the body with the private key and adds a DKIM-Signature header. It names the signing domain (d=) and the selector (s=).
  4. The receiver reads d= and s=, looks up s._domainkey.d in DNS, and checks the signature with that public key.
  5. If the signature matches, the result is pass: the message is intact and was signed by someone holding the domain's key.
  6. DMARC then asks whether the signing domain lines up with the visible From address. A valid signature from a different domain proves nothing about the From address.
Important: a published key is not the same as signed mail. A domain can have a perfect key in DNS while its messages go out unsigned, or signed by the sending service's own domain. That is why the header reader above matters.

Where to find your selector

Your email provider's DKIM page always shows the exact name and record; it is the authority. These are the names these services usually use, taken from what real senders publish in DNS.

ServiceSelector names you will usually seeNotes
Google WorkspacegoogleThe default; you can pick another name when you generate the key.
Microsoft 365selector1, selector2Both are CNAME records pointing into your onmicrosoft.com domain, which lets Microsoft rotate the keys.
Mailchimp / Mandrillk1, k2, k3; mandrillMailchimp sets up its selectors as CNAMEs.
SendGrids1, s2CNAMEs to SendGrid. Older setups used smtpapi.
Zendeskzendesk1, zendesk2CNAMEs.
HubSpoths1, hs2CNAMEs to HubSpot.
Brevo (Sendinblue)brevo1, brevo2; older mail
Proton Mailprotonmail, protonmail2, protonmail3CNAMEs.
Fastmailfm1, fm2, fm3CNAMEs.
Amazon SESThree random stringsCannot be guessed. Copy the three CNAME records from the SES console.
Postmark and othersChosen by the serviceOften a long number or a name that includes the date. Read it from the dashboard.
Your own mail serverdefault, mail, or any name you chooseWhatever your signing software is configured to use.

If you are not sure, send yourself a message and use the header reader above: the s= value is the selector, with no guessing.

What every part of a DKIM record means

A DKIM record is a list of tag=value pairs separated by semicolons, for example v=DKIM1; k=rsa; p=MIIBIjANBgkq.... Only p= is required.

TagMeaningValues
v=Version. Recommended; if present it must be the first tag and must be exactly DKIM1. A record with any other version is discarded.DKIM1
k=Key type. Defaults to rsa if left out.rsa, ed25519
p=The public key, base64 encoded. Empty means the key has been revoked.base64
h=Hash algorithms the key may be used with. If left out, all are allowed. Today only sha256 should be used.sha256, sha1
s=Services the key applies to. Defaults to * (everything). Anything that is not * or email means receivers ignore the key for mail.*, email
t=Flags, separated by colons. y means the domain is testing DKIM, and receivers must not treat a failure differently from unsigned mail. s means signatures must use the exact domain, not a subdomain.y, s
n=A note for humans. Ignored by receivers.text

Key size and type

Common problems

What you seeUsual causeFix
“No DKIM key at that selector”Wrong selector, or the record was published at the wrong name. Many DNS hosts append your domain, so google._domainkey.example.com becomes google._domainkey.example.com.example.com.Enter only selector._domainkey as the host name. Check the exact selector in the provider's settings.
The key cannot be readThe key was truncated or changed when pasted, or quotation marks or spaces ended up inside the value.Copy it again as one value. If the host has a per-string limit, split it into quoted strings in one record.
Key found, but mail shows dkim=failThe message was changed after signing (a footer added by a mailing list or gateway), or signed with a different key than the one published.Read the header: compare the selector in the message with the one you checked. Disable body-modifying footers before the signing step.
dkim=pass but DMARC still failsThe signature is valid but for another domain, such as the sending service's own domain. It does not line up with your From address.Set up domain authentication (custom DKIM) in the service, so it signs as your domain.
dkim=noneThe message was not signed at all.Turn on DKIM signing in your mail platform. Publishing the key alone does nothing.
Revoked (empty p=)The key was withdrawn on purpose, or the record was saved without its key.Generate a new key and publish the whole record.
Fails only on forwarded mailThe forwarder changed the message, for example by rewriting the subject.Not a problem with your key. DMARC passes if either SPF or DKIM aligns, and ARC helps some forwarders. Nothing to fix on your side.

Changing or replacing a key safely

  1. Generate the new key in your provider's settings (choose 2048 bits).
  2. Publish it under a new selector, leaving the old record in place.
  3. Check it here until it is found and valid.
  4. Switch signing to the new selector.
  5. Send a test and confirm dkim=pass with the new selector in the header.
  6. Wait a few days so messages already in transit can be checked, then remove the old record.

Test it with a real message

  1. Send a message from the address and system you want to test to a Gmail account.
  2. Open it, choose ⋮ then Show original. Near the top you will see “DKIM” with PASS or FAIL and the domain.
  3. Copy the header and paste it into the reader above to see the selector, algorithm, headers signed and whether the signing domain lines up with the From address.

Questions people ask

Do I need DKIM if I have SPF?

Yes. SPF checks the sending server, DKIM checks the message, and they fail in different situations (for example SPF breaks on forwarding, DKIM usually survives it). Google requires SPF or DKIM from all senders, and both plus DMARC from senders of more than 5,000 messages a day to Gmail users.

Can a domain have more than one DKIM key?

Yes, one per selector. Different services each use their own selector, and that is what makes key rotation safe.

Why can't you find my key without a selector?

DNS can only be asked for a name that is known, and DKIM keys are not listed anywhere. The selector is part of the name. That is why we try common names and why the header reader is the reliable route.

Does this check prove my mail is signed?

No. It proves the key is published and sound. Whether messages are signed with it is shown in a real message header, which is what the header reader looks at.

Sources