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:
| Email app | How to open the headers |
|---|---|
| Gmail on the web | Open the message, click the three dots, then Show original. |
| Outlook on the web and new Outlook | Open the message, click the three dots, then View and View message details (or View message source). |
| Classic Outlook for Windows | Open the message, then File, Properties, and read Internet headers. |
| Apple Mail | Open 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=selector1is the selector.d=example.comis 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:
| Service | Selector | Record type |
|---|---|---|
| Microsoft 365 | selector1 and selector2 | CNAME, pointing to a Microsoft host |
| Google Workspace | google (you can choose another when you set it up) | TXT |
| Mailchimp | k1 (sometimes k2, k3) | CNAME |
| SendGrid | s1 and s2 | CNAME |
| Fastmail | fm1, fm2 and fm3 | CNAME |
| Proton Mail | protonmail, protonmail2 and protonmail3 | CNAME |
| Zoho Mail | Chosen by you at setup | TXT |
| Amazon SES (Easy DKIM) | Three random-looking names, one per key | CNAME. 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:
| What to look at | Good | Needs attention |
|---|---|---|
| Key length | 2048-bit RSA, the current recommendation | 1024-bit still verifies but is weak. Under 1024 bits, receivers must not accept the signature (RFC 8301), so the mail counts as unsigned. |
p= value | A long string of letters and numbers | Empty p= means the key was revoked on purpose. Mail signed with it fails. |
t=y | Absent | Testing mode: some receivers treat failures more gently. Remove it once DKIM works. |
| Formatting | One continuous key | Stray 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