Skip to content
RESEARCH INDEX BREACHROAD / INTELLIGENCE NOTE

DKIM Selector: How to Find It and Check Your Key

Where to find the DKIM selector in a message header, which selectors Google, Microsoft 365 and Mailchimp use, how to check the key and when to rotate it.

PUBLIC RESEARCH
AUTHOR
/ Founder of Breachroad
PUBLISHED
27 November 2026
READING TIME
10 min read
TOPIC
Cloud, Infrastructure and DevSecOps
DKIM Selector: How to Find It and Check Your Key
FREE TOOL · LIVE DNS Can someone spoof your domain? Test SPF, DKIM and DMARC Enter your domain — we count SPF lookups, check the DMARC policy and DKIM keys, and give you records to fix.

DKIM is a cryptographic signature that the sending server adds to every message and the receiving server verifies with a public key from DNS. It sounds simple — until you try to check it: you enter your domain into a tool and it replies “no DKIM found”. Does that mean your mail isn’t being signed? Not necessarily. Most often the problem is the selector.

This guide shows what a DKIM selector is, where to find it, which selectors popular providers use, how to check the key in DNS and when you need to rotate it.

Check your domain: the free SPF, DKIM and DMARC checker tries over 20 common selectors, and you can enter your own in a separate field. It also shows the key type and approximate key length.

What a DKIM selector is

A DKIM public key is published in DNS as a TXT record at:

selector._domainkey.yourdomain.com

The selector is the first part of that name. It lets one domain hold several keys at once — for example one for Google Workspace, another for a newsletter platform and a third for an invoicing system. It also makes key rotation easier: you publish a new key under a new selector, switch signing over, and only then retire the old one.

The catch is that DNS has no list of selectors. You can’t ask “show me all DKIM keys for this domain” — you have to know the name. That’s why tools test a list of common selectors, and if your provider uses a different one, the result is “not found”.

How to find the selector in a message header

The most reliable method: send a message from your domain to another mailbox and look at its headers.

  • Gmail: open the message → the “⋮” menu → “Show original”. At the top you’ll see a summary with the SPF, DKIM and DMARC results.
  • Outlook on the web: the “…” menu on the message → “View” → “View message source”.
  • Outlook desktop: open the message → “File” → “Properties” → the “Internet headers” box.
  • Apple Mail: “View” → “Message” → “All Headers”.
  • Thunderbird: Ctrl+U (message source).

Find the DKIM-Signature header. It looks roughly like this:

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

Two tags matter:

  • s= — the selector (here: google);
  • d= — the domain that signed the message. For DKIM to count in DMARC, d= must match the domain in the “From” field (alignment). If you see the provider’s domain there, e.g. d=newsletter-provider.com, the signature exists but doesn’t protect your domain in DMARC.

A message can carry several DKIM-Signature headers — for example one with your domain and one with the provider’s. That’s normal.

ProviderTypical selector
Google Workspacegoogle (default; a different one can be set)
Microsoft 365selector1 and selector2 (CNAME records to the onmicrosoft.com domain)
Mailchimpk1 (also k2, k3)
SendGrids1 and s2
Amazon SESthree random strings (CNAME records)
Resendresend
Zoho Mailchosen during setup, often zoho

Many services let you choose your own selector or generate a random one — in that case the only reliable source is the message header or the provider’s console.

How to check the DKIM key in DNS

Once you know the selector, enter it in the “DKIM selector” field of the e-mail domain checker. The tool fetches the record and shows:

  • whether the record exists and contains a key (p=);
  • the key type — rsa (most common) or ed25519;
  • the approximate RSA key length;
  • whether the key is revoked — according to RFC 6376, an empty p= means a revoked key.

A DKIM record looks like this:

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

The long string after p= is the base64-encoded public key. A 2048-bit key is longer than 255 characters, so in DNS it’s stored as several concatenated strings — most DNS panels do this automatically.

Which DKIM key length — 1024 or 2048 bits?

RFC 8301 requires signers to use RSA keys of at least 1024 bits and recommends at least 2048 bits. A 1024-bit key is still accepted by receiving servers but has a smaller security margin. If the checker shows 1024 bits, don’t panic — just generate a 2048-bit key in your provider’s console at your next rotation.

The newer Ed25519 key type (RFC 8463) is shorter and faster, but not every receiving server verifies it — so if you use it, sign messages with an RSA key in parallel too.

How to rotate a DKIM key safely

  1. Generate a new key (2048 bits) in your mail provider’s console — usually under a new selector.
  2. Publish the new record in DNS and wait for it to propagate (according to the TTL).
  3. Switch signing to the new selector in the provider’s console.
  4. Check the header of a sent message — s= should show the new selector, and Gmail should report DKIM: PASS.
  5. Wait a few days until messages signed with the old key stop circulating (for example in queues and on mailing lists).
  6. Retire the old key — publish an empty p= or delete the record.

Rotate keys regularly (for example once a year) and always when you suspect the private key may have leaked — for instance after an incident at your provider or when an administrator with access leaves.

DKIM and DMARC

DKIM matters more for DMARC than it may seem. Unlike SPF, a DKIM signature survives forwarding — a forwarded message keeps its signature even though it leaves from a different server. That’s why, before moving from p=none to reject, make sure every service that sends mail on your behalf signs it with DKIM for your domain (d=). We describe the step-by-step plan in DMARC: from p=none to reject, and SPF lookup-limit problems in SPF PermError: too many DNS lookups.

Summary

“No DKIM found” usually means an unknown selector, not a missing signature. Find s= in the DKIM-Signature header, check the key in the SPF, DKIM and DMARC checker, make sure d= matches your domain, and move to a 2048-bit key at the next opportunity. The basics are covered in SPF, DKIM and DMARC explained.

Sources: RFC 6376 — DomainKeys Identified Mail (DKIM) Signatures, RFC 8301 — Cryptographic Algorithm and Key Usage Update to DKIM. Recommendations are Breachroad’s analysis.

FAQ

Frequently asked questions

What is a DKIM selector?
A selector is the name under which a DKIM public key is published in DNS. The record has the form selector._domainkey.yourdomain.com. Selectors let one domain have several keys at once — for example one for company mail and another for the newsletter.
How do I find my DKIM selector?
Open the headers of a sent message (in Gmail: message menu → Show original) and find the DKIM-Signature header. The s= value is the selector, and d= is the domain that signed the message. You can also find the selector in your mail provider's domain authentication settings.
Why can't tools find my DKIM?
Because DNS doesn't let anyone list selectors — you have to know the name. Tools check common selectors (google, selector1, k1, s1 and so on). If your provider uses a different one, enter the selector from the DKIM-Signature header in the checker manually.
What DKIM key length is secure?
RFC 8301 requires signers to use RSA keys of at least 1024 bits and recommends at least 2048 bits. A 1024-bit key still works, but it's worth generating a 2048-bit key at your next rotation.
How do I revoke an old DKIM key?
First switch signing to the new selector, wait a few days until messages signed with the old key stop circulating, then publish the old record with an empty p= value or delete it. According to RFC 6376, an empty p= means the key has been revoked.

SHARE / COPY