Skip to main content

Find your DKIM key and check it is strong enough

This DKIM checker looks up the public key your mail is signed with and tells you if it is there and strong enough. Enter your domain and we try the selectors used by Google Workspace, Microsoft 365 and other common platforms. Know your selector? Add it for an exact answer.

Reads public DNS records only, the same ones every mail server reads. We do not keep your domain or the results. Own a domain and want it left out? Publish a TXT record reading exclude at _pentesting-org.yourdomain.

How a receiving server checks your emailYour mail server sends a message. The receiving server looks up selector._domainkey.example.com in public DNS, finds v=DKIM1; k=rsa; p=MIIB…, and decides: inbox, spam or rejected.Your mail serversigns each messagemessageReceiving serverDKIM checkDNS lookupTXT at selector._domainkey.example.comv=DKIM1; k=rsa; p=MIIB…InboxSpamRejectedDoes the signature match the key?
Every receiving server asks the same question of your public DNS. This check reads the same records.

How a receiver finds your key

A DKIM signature names a selector and a domain. The receiver joins them into a DNS name, fetches your public key, and checks the signature with it.

How a DKIM selector finds the public keyThe email header carries s=selector and d=domain. The receiver looks up selector._domainkey.domain to fetch the public key.EMAIL HEADERDKIM-Signature: v=1;s=selector1d=example.comb=signature…DNS LOOKUPselector1._domainkey.example.comPublic key found2048-bit RSA
DNS cannot list every selector, so a checker tries the common ones. The s= value in a sent email’s header tells you yours.

What a good DKIM set-up looks like

  • Every service that sends as you signs with your own domain, not only its own.
  • Keys are 2048-bit RSA (or Ed25519 alongside RSA).
  • Old selectors are withdrawn after you rotate keys.

How to read the result

  • Key found, 2048 bits or more. Nothing to change. Keep an eye on old selectors you no longer use.
  • Key found, 1024 bits. It still works but is the minimum. Generate a 2048-bit key in your email provider’s settings and publish the new record.
  • No key found. This does not prove DKIM is off. The checker can only try selectors it knows. Find yours in an email’s original headers, on the “s=” part of the DKIM-Signature line, and enter it.
  • Empty p= value. The key has been withdrawn on purpose. Mail signed with it will fail.

What the standard says about key size

“Signers MUST use RSA keys of at least 1024 bits for all keys. Signers SHOULD use RSA keys of at least 2048 bits.”

That is why a 1024-bit key shows as something to improve rather than a failure: it is allowed, and 2048 is the recommendation.

Common DKIM mistakes

  • Only the provider signs. The signature is for the provider’s own domain, so it does not line up with your “From” address and DMARC cannot use it. Turn on custom-domain signing for every service that sends as you.
  • The record was split or mistyped. Long 2048-bit keys are often pasted with a stray space or line break. Copy the value exactly as the provider shows it.
  • Old selectors left published. After a key change, withdraw the old selector once nothing signs with it.

DKIM proves a message was signed by a domain. DMARC is what tells receivers to act when the signature or SPF is missing, so check it next.

Questions

What is a DKIM selector?

A name that points to one of your public keys. Your mail server puts it in every signed message as "s=", and receivers look up selector._domainkey.yourdomain to fetch the key. One domain can have several selectors, one per sending service.

How do I find my DKIM selector?

Open an email you sent, view the original message or headers, and find the DKIM-Signature line. The value after "s=" is the selector and the value after "d=" is the signing domain. Your email provider’s DKIM settings page also shows it.

Why does the checker say no key was found when I have DKIM set up?

DNS has no way to list every selector, so a checker can only try names it knows. If your provider uses an unusual one, enter it in the selector box. A missing result here is not proof that DKIM is off.

Is a 1024-bit DKIM key still OK?

It is the minimum. RFC 8301 says signers must use at least 1024 bits and should use 2048. Most providers offer 2048-bit keys; switching is usually a new key in the provider’s settings and a new DNS record.

What does an empty p= mean?

The key has been withdrawn. Mail signed with that selector will fail DKIM. That is normal after rotating to a new key, as long as your mail is now signed with the new selector.

More email checks

Accreditations are reported from public sources, with the source linked on each listing.