Skip to content
AdminKit
Free tool Updated

DKIM check: is your DKIM selector published correctly?

How does this check work, and what does the result tell you?

Enter a domain and selector and this free tool looks up that DKIM TXT record and checks it with AdminKit's own code: tag syntax, the RSA key size against RFC 8301's 1024-bit minimum and the ed25519 key length. It also lists common selectors by provider, since keys are published per selector and DNS cannot list them.

Part of the Email authentication cluster — more tools, guides and terms on email authentication.

AI explanation Run a check below, then sign in to ask AI to explain the result in plain language.

Not sure of your selector? Common provider hints
  • Google Workspace: google
  • Microsoft 365: selector1, selector2
  • Mailchimp / Mandrill: k1, k2, k3
  • SendGrid: s1, s2
  • Amazon SES: a random string shown in the SES console, e.g. "xyz123"
  • Zoho Mail: zoho or zmail
  • Generic / unknown: default, dkim, mail

What the result means

An empty p= value means the key was deliberately revoked, not a formatting mistake — providers do this when rotating keys.

Next step

Check SPF and DMARC to see the full mail authentication picture for this domain.

Keep this result

Copy a link to this check so you can share it or run it again later. Want a heads-up when this result changes? Talk to our team and we'll set it up for you.

How it works and limits

DKIM (DomainKeys Identified Mail) publishes a public key in DNS so receivers can verify a cryptographic signature a mail server adds to outgoing messages, as defined in RFC 6376. This tool fetches the TXT record at <selector>._domainkey.<your domain> and checks it with AdminKit’s own code: the tag syntax, the key type, and the key itself. For RSA that means measuring the key size against RFC 8301, which tells verifiers not to accept keys under 1024 bits; for ed25519 it means checking the 32-byte key length from RFC 8463.

Why you need a selector

A domain can publish many DKIM keys at once — one per sending service, rotated over time — each under its own selector label. There is no standard DNS record that lists a domain’s active selectors, so the selector has to come from whoever configured mail sending (it is usually shown in that provider’s admin panel, or follows a predictable pattern per provider; see the hints in the form above). Two examples from the providers’ own docs: Google’s DKIM setup guide uses google as the default selector for Workspace, and Microsoft’s DKIM guide for custom domains has Microsoft 365 domains publish two CNAME records, selector1._domainkey and selector2._domainkey. For any other sender, Google’s guide notes you can find the selector in the s= value of the DKIM-Signature header of a message it sent.

How to read the results

  • DKIM record (<selector>._domainkey.<domain>) — the exact TXT record found at that name. A TXT record counts as a DKIM key record only if it has a p= tag and either no v= tag or exactly v=DKIM1. Tag names are case-sensitive (RFC 6376 §3.2), so P= is not the key tag, and a record with v=dkim1 is discarded. If no record counts, or more than one does, no record is shown.
  • Key size badge — for an RSA key that could be parsed, its size in bits: red under 1024, amber from 1024 to 2047, green at 2048 or more.
  • Findings — plain-language notes, in this order:
    • Key type — the k= value, rsa when the tag is absent. The value is case-insensitive, so k=RSA reads as rsa.
    • the key itself:
      • empty p=: the key has been revoked;
      • not valid base64: often stray characters from copying it into DNS (whitespace inside p= is allowed and ignored);
      • RSA under 1024 bits: verifiers must not accept it, so DKIM fails;
      • RSA from 1024 to 2047 bits: accepted, but 2048 is the current recommended minimum;
      • RSA at 2048 bits or more: reported with its size;
      • base64 that is not an RSA public key (SubjectPublicKeyInfo): unusable;
      • ed25519 that is not exactly 32 bytes: unusable;
      • a k= other than rsa or ed25519: not recognised, so verifiers will not use the key.
    • a t=y testing flag, if set (any case, with or without spaces around : in a list like t=s:y).
  • A tag repeated (for example two p= tags) — one finding replaces all of the above: RFC 6376 §3.2 makes the whole record invalid.
  • No DKIM record found or Multiple DKIM TXT records replace the findings when there isn’t exactly one record.

A record’s tags, listed below, are registered in IANA’s DKIM-Signature Tag Specifications:

  • p= — the base64-encoded public key. Empty means the key has been deliberately revoked (used when rotating or retiring a selector) — mail signed with it will now fail verification.
  • k= — the key algorithm, almost always rsa; RFC 8463 added ed25519 as a second signing algorithm, with a 32-byte public key.
  • t=y — marks a selector as “testing,” which some receivers treat leniently.

See how to read a DKIM check result for what an empty p=, the k= algorithm, and a t=y flag each actually mean for your mail.

Examples

For example.com with selector s1. These findings come from running AdminKit’s DKIM code against a fake DNS resolver; MIIBIjANBgkq… stands for a full base64 key, generated locally at the size shown.

Record at s1._domainkey.example.comFindingsWhat it means
v=DKIM1; k=rsa; p=MIIBIjANBgkq… (2048-bit key)Key type: rsa. A 2048-bit RSA public key is present.A normal, published RSA key.
v=DKIM1; k=rsa; p=MIGfMA0GCSqG… (1024-bit key)Key type: rsa. The RSA key is 1024 bits — accepted, but 2048 bits is the current recommended minimum…Works today; rotate to 2048 bits.
v=DKIM1; k=rsa; p=MFwwDQYJKoZI… (512-bit key)Key type: rsa. The RSA key is only 512 bits — RFC 8301 §3.2 tells verifiers not to accept keys under 1024 bits, so DKIM fails…Unusable: regenerate the selector.
v=DKIM1; k=ed25519; p=11qYAYKxCrfVS/7TyWQHOg7hcvPapiMlrwIaaPcHURo=Key type: ed25519. An ed25519 public key is present (RFC 8463)…An Ed25519 key (this one is the example key from RFC 8463).
v=DKIM1; k=ed25519; p=11qYAYKxCrfVS/7TyWQHOg7hcvPapiMlKey type: ed25519. The ed25519 key is 24 bytes; RFC 8463 requires exactly 32…Truncated, often by a DNS panel’s length limit.
v=DKIM1; t=y; p=MIIBIjANBgkq…Key type: rsa, key size, plus the t=y testing noteSome receivers skip enforcement while testing; remove t=y once signing works.
v=DKIM1; p=Key type: rsa. p= is empty — this selector has been revoked…Deliberately retired; mail still signed with s1 fails.
v=DKIM1; p=MIIBIjANBgkq…; p=Tag p appears more than once — RFC 6376 §3.2 makes the whole record invalid…Publish each tag once.
v=DKIM1; P=MIIBIjANBgkq…No DKIM record found at s1._domainkey.example.comP= is not the key tag: tag names are case-sensitive.
(no TXT with p=)No DKIM record found at s1._domainkey.example.comWrong selector, or this domain doesn’t sign with s1.

Limits

  • This validates the DNS-published key record, not whether a specific message’s signature actually verifies — that needs the raw message headers, which this tool never sees.
  • The key is checked for size and format only. The h= (allowed hash algorithms) and s= (service type) tags are not checked.
  • No query is logged; see /legal/privacy/.

To format the DNS record from a public key you have generated with openssl, use AdminKit’s DKIM record generator.

See SPF, DKIM and DMARC explained for how DKIM fits together with the other two mail authentication records. If your record looks right but signing still fails, see DKIM selector and record mistakes that break signing for the common causes, and the glossary entry for DKIM. See best free DKIM record checkers for how this tool’s domain-plus-selector lookup compares to MxToolbox, DNSChecker, EasyDMARC, dmarcian and mail-tester’s own free checkers.

Frequently asked questions

What is a DKIM selector?

A selector is the label that identifies one specific key among the several a domain can publish at once: RFC 6376 subdivides "the key namespace ... using 'selectors'" (RFC 6376 §3.1), resolving to a DNS name such as selector._domainkey.example.com. Your mail provider assigns the selector value, usually shown in its admin panel.

Why does my DKIM check need a selector input?

Because DKIM publishes one key per selector, not per domain, and RFC 6376 defines no DNS record listing a domain's selectors (RFC 6376 §3.1 only defines the per-selector query itself) — the selector value has to come from whoever configured mail sending, which is why this tool asks for both the domain and the selector.

I found a DKIM record with an empty p= value — is that broken?

No — it's deliberately disabled, not broken: RFC 6376 states plainly that "an empty value means that this public key has been revoked" (RFC 6376 §3.6.1), which is expected when rotating to a new selector or retiring an old mail-sending service. Mail still signed with that selector will now fail verification, which is the intended effect of revoking it.

Does a valid DKIM record mean my outgoing mail is signed correctly?

No — this only validates the published key record in DNS, not whether any specific message's signature actually verifies against it. RFC 6376 treats those as two separate steps: publishing a key (§3, what this tool checks) and a receiver verifying one signed message against it (§6) — the second step depends on your mail server correctly signing with the matching private key, which this tool never sees.

What does it mean if no DKIM record is found?

No usable key record exists at <selector>._domainkey.<domain>: no TXT record with a lowercase p= tag, or only one whose v= is not exactly DKIM1. Most often the selector is wrong: it comes from your mail provider's admin panel, and the form lists common ones per provider. Mail sent under other selectors may still be signed.