Skip to main content
Varaxon Technologies

Email security

How to find your DKIM selector (and check the key behind it)

Your DKIM selector is the s= value in the DKIM-Signature header of an email you sent. How to find it in Gmail and Outlook, common selectors, and what to check.

By Brandon Sooknanan, Founder, Varaxon Technologies · · 5 min read

DKIM checkers ask for a selector, and most people have never heard of one. It's just a label. Your mail service signs every message with a private key, and publishes the matching public key in DNS under a name that starts with the selector. Because one domain can have many keys (one per service, or old and new during a change), the selector tells the receiving server which one to fetch.

This guide shows the fastest way to find yours, the defaults the big services use, and what to look for once you have the key.

Find the selector in an email you sent

The surest way is to read it from a real message. Send an email from the service you want to check to an address you can read (a personal Gmail or Outlook.com account is ideal), then open the full headers of the message that arrived:

Where to see the full headers
Email appHow to open the headers
Gmail on the webOpen the message, click the three dots, then Show original.
Outlook on the web and new OutlookOpen the message, click the three dots, then View and View message details (or View message source).
Classic Outlook for WindowsOpen the message, then File, Properties, and read Internet headers.
Apple MailOpen the message, then View, Message, All Headers.

Search the headers for DKIM-Signature. It looks something like this:

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=example.com; s=selector1; h=From:Date:Subject...; bh=...; b=...

  • s=selector1 is the selector.
  • d=example.com is the signing domain. For DMARC, this must be your domain (or a subdomain of it). If it says the sending service's domain instead, the message is signed, but not in a way that helps you.

A message can carry more than one DKIM-Signature. That's normal: a sending service often signs once with its own domain and once with yours. Look for the one where d= is your domain. If there isn't one, that service isn't signing as you yet.

Gmail's Show original page also prints a summary at the top: DKIM: 'PASS' with domain example.com. That tells you the key is published and the signature verified.

Common DKIM selectors by mail service

If you can't get a message, try your provider's default. These are the selectors the big services use out of the box:

Default DKIM selectors
ServiceSelectorRecord type
Microsoft 365selector1 and selector2CNAME, pointing to a Microsoft host
Google Workspacegoogle (you can choose another when you set it up)TXT
Mailchimpk1 (sometimes k2, k3)CNAME
SendGrids1 and s2CNAME
Fastmailfm1, fm2 and fm3CNAME
Proton Mailprotonmail, protonmail2 and protonmail3CNAME
Zoho MailChosen by you at setupTXT
Amazon SES (Easy DKIM)Three random-looking names, one per keyCNAME. Read them from a header or the SES console.

To look one up by hand, run dig TXT google._domainkey.yourdomain.com +short on macOS or Linux, or nslookup -type=txt google._domainkey.yourdomain.com on Windows, swapping in the selector. For Microsoft 365, ask for the CNAME: dig CNAME selector1._domainkey.yourdomain.com +short.

Or skip the guessing: the DKIM checker tries 55 selectors used by common services, including all of the above, and lists every key it finds with the service it belongs to. If it finds none, that means none under the usual names, not that you have no DKIM. A custom selector can only be found in a signed message.

What to check once you've found the key

A DKIM record looks like v=DKIM1; k=rsa; p=MIIBIjANBgkq.... Four things matter:

Reading a DKIM key record
What to look atGoodNeeds attention
Key length2048-bit RSA, the current recommendation1024-bit still verifies but is weak. Under 1024 bits, receivers must not accept the signature (RFC 8301), so the mail counts as unsigned.
p= valueA long string of letters and numbersEmpty p= means the key was revoked on purpose. Mail signed with it fails.
t=yAbsentTesting mode: some receivers treat failures more gently. Remove it once DKIM works.
FormattingOne continuous keyStray spaces, quotes or line breaks pasted into the key make it unreadable.

The DKIM checker reports the length of each RSA key and flags short, revoked and testing keys. Newer Ed25519 keys (k=ed25519) are much shorter by design, and not every receiver checks them yet, so services that use them usually sign with an RSA key as well.

Common DKIM problems and how to fix them

  • DKIM never turned on. Microsoft 365 signs custom domains only after you publish its two CNAME records and switch DKIM on in the Defender portal. Google Workspace needs you to generate the key in the admin console, publish it, then click Start authentication.
  • Services signing with their own domain. Newsletter, CRM and invoicing tools often sign as themselves until you complete their "authenticate your domain" setup. Their mail passes DKIM but doesn't align with yours, so it doesn't help DMARC.
  • A 1024-bit key. Rotate to 2048 bits where the provider allows it. Google Workspace lets you choose the length when you generate a new key.
  • Key published under the wrong name. Some DNS hosts add your domain to the end of every name automatically. If you type the full name into such a host, the record ends up with your domain on the end twice, where no receiver will look. Enter just google._domainkey (or your selector followed by ._domainkey).

Once every service that sends as you signs with your domain, DMARC can pass even for forwarded mail, where SPF usually breaks. That's what makes it safe to enforce. Why email fails DMARC explains how the two fit together.

Common questions

What is a DKIM selector?

A label chosen by your mail service that says which public key to use. The key is published at selector._domainkey.yourdomain, so one domain can have a separate key for each service that sends for it.

Can I find all DKIM selectors for a domain?

Not from DNS alone. DNS has no list of the names under _domainkey. You can try common selector names, as the DKIM checker does, or read the s= value from messages each service sends.

What is the Microsoft 365 DKIM selector?

selector1 and selector2. Both are CNAME records that point to Microsoft, which lets Microsoft rotate keys without you changing DNS again. DKIM must be switched on for each custom domain.

What is the Google Workspace DKIM selector?

google, unless you chose a different prefix when you generated the key in the admin console. The record is a TXT record at google._domainkey.yourdomain.

Turn your next scan export into a client-ready report.

Run a free pre-flight check

Cookie preferences

Essential site functions remain available whichever option you choose. Your advertising choice is saved on this site. The Scan Hub has a separate choice.

Google and Reddit may receive cookies, identifiers, browser and device information, and your network/IP information. Reject or withdraw at any time. Read the Privacy Policy.