DKIM
What Is a DKIM Selector? How to Find, Name and Rotate One
The DKIM selector is the s= value that points receivers to one public key at selector._domainkey.domain. Learn how to find yours, the selectors common providers use, naming rules, rotation, and how to fix a 'no key for signature' error.
By MailConfig.pro TeamPublished 7 min read

On this page
- How the selector finds the key
- How to find your DKIM selector
- 1. The headers of a message you sent
- 2. Your email service's DKIM settings
- 3. Your DMARC aggregate reports
- Selectors used by common email services
- Naming rules and conventions
- Rotating keys with a new selector
- Troubleshooting selector problems
- Keeping track of selectors with MailConfig.pro
A DKIM selector is the name that tells a receiving mail server which public key to use when it checks a DKIM signature. It appears as the s= tag in the DKIM-Signature header, next to the signing domain in d=. The receiver combines the two and looks up the key in DNS at selector._domainkey.domain. Selectors exist so that one domain can have many keys at the same time: one per email service, one per mail server, or an old and a new key during rotation. They are defined in section 3.1 of RFC 6376.
How the selector finds the key
A signed message carries a header like this one (shortened):
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=example.com; s=mail2026;
h=from:to:subject:date:message-id;
bh=...; b=...
The receiver reads s=mail2026 and d=example.com, then queries DNS for a TXT record at this name:
mail2026._domainkey.example.comv=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA..._domainkey is a fixed label that RFC 6376 reserves for DKIM keys. p= holds the public key, and k= the key type (rsa by default, or ed25519 from RFC 8463). If the signature verifies with that key, DKIM passes for example.com. For DMARC, what matters next is whether d= aligns with the domain in the From header. The selector plays no part in alignment.
The selector is only a pointer, not a secret. It is visible in every signed message, and knowing it gives an attacker nothing they could not already see in DNS.
How to find your DKIM selector
There is no DNS query that lists every selector of a domain. DNS answers only for names you ask about, so you need to learn the selector from somewhere else. Three places have it.
1. The headers of a message you sent
Send a message from the service you want to check to a mailbox you can read, open the full headers (in Gmail: Show original; in Outlook: View message source) and find DKIM-Signature. The s= value is the selector and d= is the signing domain. A message can carry several signatures, for example one with your domain and one with the email service's own domain. The one that matters for DMARC is the one whose d= is your domain.
The email header analyzer pulls the selector, domain and result out of pasted headers for you. Check the Authentication-Results header too: it shows what the receiver concluded, for example dkim=pass header.d=example.com header.s=mail2026.
2. Your email service's DKIM settings
Every service that signs mail as your domain shows the DNS records it wants you to publish, and the selector is the part before ._domainkey. If the setup page shows k1._domainkey.example.com, the selector is k1.
3. Your DMARC aggregate reports
Aggregate reports list each DKIM result receivers saw on your mail, with the domain, the selector and the result (RFC 9990). This is the best way to find selectors you forgot about: a newsletter tool someone set up years ago will show up there as long as it still sends.
Selectors used by common email services
Many services use fixed selector names, which makes them easy to recognize in headers and DNS. These are the usual defaults; always copy the exact names from your own account's setup page, because services change them and some generate unique names per account.
| Service | Typical selectors | How the key is published |
|---|---|---|
| Google Workspace | google (you can choose another prefix) |
TXT record you copy from the Admin console |
| Microsoft 365 | selector1, selector2 |
Two CNAMEs to keys Microsoft hosts; only one selector is active at a time |
| Amazon SES (Easy DKIM) | Three random tokens per identity | Three CNAMEs to the token followed by an Amazon SES zone, such as <token>.dkim.amazonses.com (the zone can vary by AWS Region) |
| SendGrid | s1, s2 (a custom selector is possible) |
Two CNAMEs to keys SendGrid hosts, with automated security on; a TXT record at m1 with it off |
| Mailchimp | k2, k3 (older setups: k1) |
Two CNAMEs to dkim2.mcsv.net and dkim3.mcsv.net |
When a service gives you a CNAME instead of a TXT record, it hosts the key and can rotate it without asking you to change DNS. That is convenient, but it also means your domain trusts whatever that target returns. When you stop using a service, delete its selector records. A selector CNAME that points to a domain someone else can register lets them sign mail as you, which is explained in SPF hijacking and dangling CNAMEs.
Naming rules and conventions
You choose your own selector names when you run your own signing, for example in Postfix with OpenDKIM or in a mail server that signs outgoing mail.
What is allowed. A selector is one or more DNS labels: letters, digits and hyphens, and each label can be up to 63 characters. Periods are allowed and act as label separators (RFC 6376, section 3.1), so the selector 2026.eu is looked up at 2026.eu._domainkey.example.com. That lets you delegate part of the selector namespace, for example one DNS zone per region. In practice, most selectors are a single short label.
Useful conventions:
- Name by date (
s2026a,202612) when you rotate keys on a schedule. You can see at a glance how old a key is. - Name by service or server (
crm,mx1,billing) when several systems sign for the same domain. Each one gets its own key, so a leak in one system doesn't affect the others. - Avoid reusing a selector for a new key. Receivers and resolvers may still have the old key cached until its TTL expires. A new name avoids the overlap.
Rotating keys with a new selector
Selectors are what make key rotation safe, because the old and new keys can be published at the same time:
- Generate a new key pair (2048-bit RSA is the usual choice; RFC 8301 requires at least 1024 bits). The DKIM key generator creates one in your browser.
- Publish the public key under a new selector, for example
s2027a._domainkey.example.com. - Wait until the record resolves from public DNS, then switch your signing system to the new selector and private key.
- Keep the old selector published for a few days, so messages still in transit or queued for retry can be verified.
- Revoke the old key by publishing the old selector with an empty
p=(v=DKIM1; p=), then remove it later.
If your email service hosts the keys behind CNAMEs, it handles the key records, and you don't change DNS when keys change. Whether rotation happens automatically depends on the service. Microsoft 365, for example, uses its two selectors in turn: one is active while the other is held back for the next key. You start a rotation yourself with Rotate DKIM keys in the Defender portal or with Rotate-DkimSigningConfig in Exchange Online PowerShell, and signing moves to the other selector.
Troubleshooting selector problems
When DKIM fails because of the selector, the Authentication-Results header or your DMARC reports usually show one of these:
- No key for signature. The receiver found no TXT record at
selector._domainkey.domain. RFC 6376 makes this a permanent failure (section 6.1.2), often shown asdkim=permerrorordkim=fail. Typical causes: the record was never published, it was published under the wrong name (some DNS hosts append your domain, sos1._domainkey.example.comtyped in full becomess1._domainkey.example.com.example.com), or a CNAME target no longer exists. - Key unavailable. The DNS query timed out or returned a server error. RFC 6376 treats this as a temporary failure, and the receiver may retry later. Check that your DNS servers answer reliably for the
_domainkeynames. - Key revoked. The record exists but
p=is empty. Mail signed with that selector fails until the sender switches to a current key. - Body hash or signature mismatch. The selector and key are fine, but the message was changed after signing, often by a mailing list or a security gateway that adds a footer. This is not a selector problem.
- Several TXT records at one selector. RFC 6376 lets the receiver pick any of them, so results become unpredictable. Keep exactly one key record per selector.
To check a selector directly, enter the domain and selector into the DKIM inspector above. It fetches the record, checks the syntax and the key type and size, and flags revoked or missing keys.
Keeping track of selectors with MailConfig.pro
In MailConfig.pro you list the DKIM selectors you use on each domain, and its DNS checks inspect each of those keys along with your SPF and DMARC records. With DMARC monitoring, the details of each aggregate report show the domain and selector of every DKIM result, so a service that signs with an unexpected selector, or with its own domain instead of yours, is easy to spot. For the full picture of how signing and verification work, start with What is DKIM?.
Frequently asked questions
What is a DKIM selector?
It is a name, chosen by the domain owner or the email service, that tells receivers which public key to use for a DKIM signature. It appears as s= in the DKIM-Signature header, and the key is published in DNS at selector._domainkey.domain.
How do I find my DKIM selector?
Open a message you sent, view the full headers and find the DKIM-Signature header. The s= tag is the selector and d= is the domain. You can also find it in your email service's DKIM settings or in the DKIM results of your DMARC aggregate reports.
Can I list all DKIM selectors of a domain?
No. DNS only answers for names you ask about, and there is no standard way to enumerate the names under _domainkey. You find selectors from signed messages, from your email services' settings or from DMARC reports.
Can a domain have more than one DKIM selector?
Yes, and most do. Each service that signs mail for you usually has its own selector, and key rotation uses a second selector while the old and new keys overlap.
Does the selector name matter for security?
No. The selector is public and appears in every signed message. Choose names that are easy to manage, such as a service name or a date, and make sure every selector that points to an outside service is still in use.
References
- RFC 6376: DomainKeys Identified Mail (DKIM) Signatures, sections 3.1 (selectors), 3.5 (s= tag), 3.6.1 (key record), 3.6.2 (DNS binding) and 6.1.2 (getting the public key)
- RFC 8301: Cryptographic Algorithm and Key Usage Update to DKIM
- RFC 8463: A New Cryptographic Signature Method for DKIM (Ed25519-SHA256)
- RFC 9990: DMARC Aggregate Reporting (May 2026), section 3 (DKIM results with domain and selector)
- Google Workspace Admin Help: Set up DKIM (default selector prefix google)
- Microsoft Learn: How to use DKIM for email in your custom domain (selector1/selector2 CNAMEs, key rotation)
- Amazon SES Developer Guide: Creating and verifying identities (Easy DKIM CNAME records)
- Twilio SendGrid: How to set up domain authentication (s1/s2 records, custom DKIM selector)
- Mailchimp: Set up email domain authentication
dkimselectordnskey rotationtroubleshooting
Related articles
DKIM
What Is DKIM? DomainKeys Identified Mail Explained
DKIM adds a cryptographic signature to every message, and receivers verify it with a public key in your DNS. This guide covers the DKIM-Signature header, selectors and key records, key sizes and Ed25519, key rotation, forwarding and mailing lists, and how DKIM alignment makes DMARC work.
· 6 min read
DNS security
SPF Hijacking: How Dangling CNAMEs and Typos Let Spoofing Pass DMARC
Some spoofed mail passes DMARC because attackers took over a name your DNS still trusts: a CNAME to an expired domain, a mistyped include, or a CIDR typo. How the takeover works, how to spot it in DNS and in DMARC aggregate reports, and how to close it.
· 8 min read
DMARC
How to Identify Unknown Senders in DMARC Aggregate Reports
A step-by-step method for the unfamiliar IP addresses in your DMARC aggregate reports: which XML fields matter, how to map an IP to a service with PTR, RDAP and ASN, how to separate legitimate senders from spoofing, and how to fix SPF and DKIM alignment.
· 7 min read
DMARC
What Is DMARC? How Email Authentication Fits Together
DMARC is a DNS record that ties SPF and DKIM to the domain in the visible From address, states what receivers should do with mail that fails, and requests reports. This guide covers alignment, the record syntax, policies, reporting and what happens when a domain has no record.
· 10 min read



