CheckSumTech Insights Ideas for the Digital Enterprise
🔍 Search All Articles Generative AI Cloud Digital Transformation Compliance Data & Analytics
DKIM not found: how to find your selector, publish a key and rotate it
🔒 Security · ·

DKIM Not Found? How to Find Your Selector, Publish a Key and Rotate It

DKIM not found: how to find your selector, publish a key and rotate it

When a scanner says “no DKIM record found,” the usual cause is that it guessed the wrong selector name, not that DKIM is missing. DKIM is a signature your mail server adds to every message, and the public key that checks it sits in DNS under a name your email provider picked. Finding that name is the first step. After that, the rest is a short list: publish a 2048-bit key, turn signing on, and rotate it safely when you need to.

2048RSA key size RFC 8301 recommends for signers
1024Minimum key size receivers must accept

Why a scanner can say “not found” when DKIM is working

A DKIM signature points to its public key by name. The key lives in a DNS TXT record at <selector>._domainkey.<yourdomain>, and the selector is a label your email provider chooses. There is no way to ask DNS for a list of every name under _domainkey, so a scanner can only guess common selector names and see which ones answer.

If your provider uses a selector the scanner didn't guess, the result reads “no DKIM record found” even though every message you send is signed. Our own free scanner works this way and says so in its result. That is why the first job is to find your real selector, not to start adding records.

Google Workspace's default selector is google. Other providers generate their own names, and many publish them as CNAME records that point back to the provider so they can rotate keys for you.

Find your real selector in two minutes

Send a message from the address you want to check to a Gmail mailbox that isn't the sending account. In Gmail, open the message, choose Show original, and look for the header that starts with DKIM-Signature. Two tags matter: d= is the domain that signed the message and s= is the selector.

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yourdomain.example; s=mail2026; h=from:to:subject:date; ...

In this made-up example the key would be at mail2026._domainkey.yourdomain.example. Look that name up as a TXT record. If it returns a value starting with v=DKIM1, DKIM is set up and the scanner simply didn't know the selector.

Now look at d=. For DMARC to count the DKIM pass, that domain has to line up with the domain in your visible From address. If d= is your email provider's own domain, the signature is valid but it is valid for them, not you, and DMARC treats it as unaligned. The fix is to turn on custom-domain signing in the provider's settings, which is the step that gives you a selector under your domain.

What a correct record looks like

Google documents the record in this shape, with the host being your selector followed by ._domainkey and the value built from your generated public key:

Host: google._domainkey Type: TXT Value: v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A...(your public key)

A 2048-bit key is longer than 255 characters, and a single DNS text string can't be longer than that. A long key therefore has to be stored as more than one quoted string inside the same TXT record, which receivers join back together. Most DNS hosts split it for you when you paste the full value. If yours doesn't, or if a signature fails to verify after you publish, check how the provider stored the value before assuming the key is wrong.

A record with an empty p= tag means the key has been revoked. Mail signed with that selector will fail verification. Our scanner flags this case separately, because it usually means a provider switch left a dead record behind.

"Finding the selector is the real fix. A scanner that guesses names can't see a selector you chose yourself, and DKIM can be working perfectly the whole time."

Which key size to use

The DKIM update in RFC 8301 sets the floor: signers must use RSA keys of at least 1024 bits, and receivers must reject anything smaller. It also says signers should use at least 2048 bits, and it forbids the older rsa-sha1 signing algorithm entirely. In practice that means 2048-bit RSA with rsa-sha256.

Google's own setup page says to use a 2048-bit key if your DNS provider supports it and fall back to 1024 only if it doesn't. Gmail and Yahoo's sender requirements both ask for a key of at least 1024 bits, so a 1024-bit key still passes today, but there is no reason to choose it unless your DNS host forces you to.

Publishing the record is only half the job

Most providers sign nothing until you switch signing on after the DNS record exists. Google's instructions are a good model: add the TXT record, wait until it is live (the Admin console warns it can take up to 48 hours to start working), then click Start authentication under Gmail's authenticate-email settings. Test by sending to a different Gmail or Google Workspace address, since you can't verify by emailing yourself, and check the Authentication-Results header for dkim=pass.

Rotating a key without breaking mail

Nothing in the DKIM standards sets a required rotation schedule, so how often you rotate is a policy decision. You should rotate right away if a private key might have leaked, and many teams also rotate on a regular schedule so the key can't sit unchanged for years.

The safe sequence uses a new selector so the old key keeps working while you switch over:

  • Publish the new key under a new selector name (for example, a date-based one) and confirm the record resolves.
  • Switch your sending service to sign with the new selector, then send a test message and confirm dkim=pass with the new s= value.
  • Leave the old record in place for long enough that delayed or queued messages signed with it can still be verified. A few days is a common choice.
  • Remove the old record, or publish it with an empty p=, once nothing is still signing with it.

Keeping an eye on it afterwards

DKIM tends to break quietly: a provider migration drops a record, a DNS clean-up removes one that looked unused, or a new sending tool goes live without signing. DeliveryRadar re-scans your domains every day and alerts you when a check changes, and it uses your DMARC reports to flag new sending sources that start failing. There is a 7-day free trial and it doesn't ask for a card.

Sources: RFC 6376, DomainKeys Identified Mail (DKIM) Signatures. RFC 8301, Cryptographic Algorithm and Key Usage Update to DKIM, sections 3.1 and 3.2. Google Workspace Admin Help, Set up DKIM.

Share:

Check your email authentication

Free, no-signup scan of your SPF, DKIM, and DMARC setup, with a plain-English fix for each issue.

Scan My Domain