Which DKIM key should you publish, and how do receivers find it?

Publish a 2048-bit RSA key. 1024 bits is the minimum the standard allows, so keep it only where a sending service offers nothing longer, and never rely on Ed25519 alone. Receivers never search your DNS for keys: each message names its own key through a selector, and nobody outside can list your selectors, which is why a lookup tool can miss a key that works perfectly.

Last reviewed: 21 October 2026.

How RFC 8301 set the floor for RSA

Since January 2018 the DKIM rules say signers must use RSA keys of at least 1024 bits, should use 2048, and must stop using SHA-1 altogether.

Read moreShow less: How RFC 8301 set the floor for RSA

Key length. Signers "MUST use RSA keys of at least 1024 bits for all keys" and "SHOULD use RSA keys of at least 2048 bits". Receivers must be able to validate keys from 1024 up to 4096 bits, and must not treat a signature made with a shorter key as valid. A 512-bit or 768-bit key left over from an old setup is worse than useless: the record looks fine in DNS, yet every compliant receiver treats the signature as failed.

SHA-1 is gone. RFC 8301 says "rsa-sha1 MUST NOT be used for signing or verifying". A modern signature names a=rsa-sha256 in its DKIM-Signature header. That's a property of the signature, not the key, so a DNS lookup can't show it; check a sent message's headers instead.

What the big providers ask for. Gmail's sender guidelines require a key of 1024 bits or longer for mail to personal Gmail accounts and recommend 2048 where your DNS provider supports it. Yahoo asks for "a minimum 1024-bit key length".

How our checker grades length. The DKIM lookup marks an RSA key under 1024 bits as a weak-key Warning, a 1024-bit key as a Note, and 2048 bits or more as a Pass. On the domain health check, an A+ needs every RSA key we find to be 2048 bits or longer.

Ed25519: small, modern and poorly supported

RFC 8463 added Ed25519 keys in 2018, but Gmail, Microsoft 365 and Yahoo don't document verifying them, so they belong beside an RSA key rather than in place of one.

Read moreShow less: Ed25519: small, modern and poorly supported

RFC 8463 added a second algorithm, ed25519-sha256. Its key record carries k=ed25519, and because the key is only 256 bits, the base64 text after p= is just 44 characters, short enough to avoid every TXT-length headache. On paper, support isn't optional: the RFC says verifiers "MUST implement" it.

Practice lags. None of Gmail, Microsoft 365 and Yahoo documents verifying Ed25519. Google's sender guidelines mention only 1024 and 2048-bit keys, and its Workspace DKIM setup page offers the same two lengths with a sample record that says k=rsa. Yahoo's best practices name no algorithm at all. Microsoft's reference for its own signing says "RSA keys are supported. Ed25519 keys aren't supported.", which covers the keys Microsoft 365 signs with; we found nothing from Microsoft on checking inbound Ed25519 signatures.

For Gmail there is a public report. In June 2026, on the Stalwart mail server's forum, a user found that Gmail's aggregate report listed their Ed25519 signature as failing while the RSA signature on the same messages passed, although the Ed25519 signature verified when they checked it locally. Stalwart's main developer replied that "Gmail does not support ed25519, that is why Stalwart signs using both RSA and Ed." That's a report, not a statement from Google, and we found no comparable public report for Microsoft 365 or Yahoo.

This matters because RFC 6376 tells verifiers to ignore signatures in algorithms they don't implement, and the Gmail report shows a fail instead. Either way, mail signed only with Ed25519 gets no DKIM pass from such a receiver, so DMARC has to rely on SPF alone. RFC 8463's answer is to sign twice, under two different selectors, which can share the same d= domain.

How our checker treats it. The DKIM lookup reports an Ed25519 record as a valid key, titled "Selector …: 256-bit ED25519 key". The health check goes further: if every key it finds is Ed25519, it holds the grade at B and asks you to add an RSA-2048 key. An Ed25519 key beside RSA-2048 avoids that cap and doesn't stand in the way of an A+, which needs every RSA key found to be 2048 bits or longer.

The s= tag: where every selector comes from

Whoever signs a message picks the selector and writes it into the s= tag of the DKIM-Signature header, and the receiver looks up only that one name.

Read moreShow less: The s= tag: where every selector comes from

A selector is a label. RFC 6376 introduced it so a domain can hold several public keys at once and "seamlessly replace public keys on a routine basis". Every signature carries d=, the signing domain, and the required s=, the selector. The receiver joins them under _domainkey and asks DNS for that exact name. In this illustrative sample (not a real message):

DKIM-Signature: v=1; a=rsa-sha256; d=example.com; s=2026q4; ...
Key looked up:  2026q4._domainkey.example.com   (TXT)

The signing service chooses the label: google by default for Google Workspace, selector1 and selector2 for every Microsoft 365 organisation, and each bulk-mail platform its own scheme. To learn yours for certain:

  1. Read a message you sent. The s= value in its DKIM-Signature line is the answer. The header analyzer also shows the receiver's DKIM result with its properties, including header.s when the receiver records it.
  2. Open the sending service's DKIM settings, which show the host name it asked you to publish.
  3. Check DMARC aggregate reports. RFC 9990, the current reporting standard, makes the selector a required field for every DKIM result.

Why a lookup can only guess

DNS answers questions about names you already know and can't list the keys under _domainkey, so our checker tries 68 common selectors in a fixed order and can still miss yours.

Read moreShow less: Why a lookup can only guess

No DNS query returns every name under _domainkey.example.com, so a tool without a selector tries names one by one, and a miss proves only that those names hold no key.

Our checker builds its list in this order, dropping repeats:

  1. Up to 10 selectors you type into the optional selector box.
  2. Your mail provider's usual selectors, when your MX records point at one we recognise, such as google for Google Workspace or selector1 and selector2 for Microsoft 365.
  3. A fixed list of 68 names, starting google, selector1, selector2, cf2024-1, cf-bounce and resend, covering names used by SendGrid, Mailgun, Mailchimp, Brevo, HubSpot, Klaviyo, Postmark and others, then generic names such as default and s2048, and ending with three dated Google names.

Some services generate random or account-specific selector names that no list can predict. When nothing answers, the result is "No DKIM key found on common selectors", a Warning that says your provider "may use a different one, in which case DKIM can still be working". If lookups failed outright and nothing was found, we say we couldn't finish rather than claiming there's no key. On the health check, finding no key holds the grade at B. The health check has no selector box, so if you use an unusual selector, type it into the DKIM lookup to confirm the key.

Microsoft 365 signs nothing until you enable DKIM

Mail from a custom domain in Microsoft 365 carries no DKIM signature for that domain until you publish two selector CNAMEs and switch signing on, and domains added since May 2025 point them at a dkim.mail.microsoft name.

Read moreShow less: Microsoft 365 signs nothing until you enable DKIM

Microsoft's documentation is blunt: "Currently, no DKIM signing occurs for outbound mail from custom domains." Mail from senders in the built-in onmicrosoft.com domain is signed automatically, but until you act, nothing you send from your own domain carries a signature DMARC can align with it.

Setting it up means two CNAMEs, selector1._domainkey and selector2._domainkey, pointing at keys Microsoft hosts, then switching the domain's DKIM toggle on in the Defender portal. Only one selector signs at a time; the other waits for the next rotation. The targets come in two formats, shown here as an illustrative pattern for example.com:

Custom domains added since May 2025:
selector1._domainkey  CNAME  selector1-example-com._domainkey.yourtenant.n-v1.dkim.mail.microsoft
Custom domains added before then:
selector1._domainkey  CNAME  selector1-example-com._domainkey.yourtenant.onmicrosoft.com

Copy the real values from the Defender portal or Get-DkimSigningConfig. yourtenant is the first part of your onmicrosoft.com domain, which isn't always your brand: apple.com's selector1 points into appleoffice.onmicrosoft.com. Microsoft assigns the letter before -v1 (n or r in its examples), and the two formats can't be mixed for one selector.

Microsoft's key size defaults to 1024 bits. Rotate-DkimSigningConfig -KeySize 2048 moves to 2048, but only for the selector that becomes active at that rotation; the other upgrades at the next one.

Rotating to a new key safely

Publish the new key under a new selector first, move signing to it, and leave the old one in DNS for several days before retiring it.

Read moreShow less: Rotating to a new key safely

Rotation is one of the main reasons selectors exist, and moving from 1024 to 2048 bits is just a rotation:

  1. Publish the new key under a new selector while the old one stays. Dated names, such as 2026q4, show which key is current.
  2. Check it with the DKIM lookup and the selector box before anything signs with it.
  3. Switch signing to the new selector in the sending service.
  4. Wait. A message can sit in a retry queue for days; RFC 5321 says a sender's give-up time generally needs to be at least four to five days. A week is a comfortable margin.
  5. Retire the old selector by deleting it or publishing an empty p=, which RFC 6376 defines as revoked.

With CNAME-hosted keys the provider does most of this; a Microsoft 365 rotation takes four days (96 hours) before the new key signs.

Worked examples: three domains, checked 21 October 2026

wikipedia.org hides its key from our guesses until its documented selector is typed in, yahoo.com publishes 1024 and 2048-bit keys side by side, and microsoft.com shows one live selector out of two.

Read moreShow less: Worked examples: three domains, checked 21 October 2026

wikipedia.org: a key the list misses. With no selector given, the DKIM lookup tried all 68 names and reported:

No working DKIM key was found on the 68 selectors we tried. This may just mean your
provider uses an unusual selector name.

The Wikimedia Foundation publishes its DNS zone templates in a public repository, and the wikipedia.org template lists a key at vrts._domainkey, noting that "VRTS uses the wikipedia.org domain as a From address". With vrts typed into the selector box, the checker tried 69 names, vrts first, and found:

Found 1 DKIM key (vrts).
Selector vrts: 2048-bit RSA key          Pass

Same domain, same DNS, opposite verdict: the only difference was knowing the name.

yahoo.com: both lengths at once. The lookup reported "Found 2 DKIM keys (s1024, s2048)." Selector s1024 holds a 1024-bit key and gets the Note; s2048 holds a 2048-bit key and passes. DNS can't show which one signs Yahoo's mail today.

microsoft.com: two selectors, one live. The lookup reported "Found 3 DKIM keys (selector2, m1, s1024).", all at 1024 bits. The DNS lookup shows why selector1 is absent:

selector1._domainkey.microsoft.com   CNAME  selector1-microsoft-com._domainkey.microsoft.onmicrosoft.com.
  TXT lookup of that target: "selector1-microsoft-com._domainkey.microsoft.onmicrosoft.com doesn't exist in DNS."
selector2._domainkey.microsoft.com   CNAME  selector2-microsoft-com._domainkey.microsoft.onmicrosoft.com.
  TXT lookup of that target: "Found 1 text record for selector2-microsoft-com._domainkey.microsoft.onmicrosoft.com."

Both CNAMEs use the older onmicrosoft.com format with the tenant label microsoft, but only selector2 leads to a key. That fits Microsoft's one-active-selector design, though DNS alone can't prove which one is signing.

DKIM key and selector questions

Answers on 1024-bit keys today, 4096-bit keys, signing only with Ed25519, tools that disagree and how long to keep an old key.

Is a 1024-bit DKIM key still good enough in 2026?

It still works: RFC 8301 makes 1024 bits the minimum every compliant receiver must verify, and Gmail and Yahoo both state 1024 as their floor. It isn't the recommendation, though; RFC 8301 and Google both point to 2048. If your service offers 2048, rotate to it. If it doesn't, a 1024-bit key is acceptable rather than broken.

Would a 4096-bit DKIM key be safer than 2048?

Slightly stronger, but 4096 is the upper edge of what receivers must verify, and the record gets long enough that a DNS panel cutting it short is a real risk. A truncated key fails everywhere, which is far worse than a working 2048-bit one. Stay at 2048 unless a service generates and hosts the longer key for you.

Can I sign my mail with an Ed25519 key only?

You can, but we don't recommend it. Gmail, Microsoft 365 and Yahoo don't document verifying Ed25519, Gmail has been publicly reported not to, and a receiver that doesn't verify Ed25519 gives your mail no DKIM pass. On our health check, an Ed25519-only domain is held at B. Add Ed25519 as a second signature under its own selector, next to an RSA-2048 one.

Why does one tool find my DKIM key when another says there isn't one?

Each tool guesses from its own list of selector names, so a key under an unusual name shows up only where the list includes it. Neither answer settles anything. Read the s= tag from one of your sent messages and look up that exact selector; that's the result receivers see.

How long should an old selector stay in DNS after I rotate?

Until mail signed with the old key can no longer be in transit. Senders often keep retrying delivery for four to five days, so leave it a week, then delete it or publish it with an empty p= to mark it revoked. Removing it the day you switch can make delayed messages fail DKIM.

Related guides, tools and problems

Look up any selector with the DKIM lookup, or start from the problem you're seeing.