Find your DKIM selector in a sent message
When your mail is DKIM-signed, receivers can tell your domain stands behind it. Each message names a selector that tells receivers where to find the key to check the signature.
Read the selector from the message headers
- 1
Open the full message headers
Use a message sent by the service you want to investigate. Find its DKIM-Signature header, rather than the sender name shown above the message.
- 2
Read the selector and signing domain
The s= value names the selector. The d= value names the signing domain. Together they identify the key's DNS name.

Use the selector to locate the public key
A signature with
s=mailandd=yoursite.compoints tomail._domainkey.yoursite.com. That's an example DNS name, not a selector to copy into your setup. Use the selector and DNS instructions from your sending service.A published key shows the DNS setup. To check whether a particular message was signed and its signature is valid, you also need the message itself.
The selector and lookup format are defined in RFC 6376.
Check key length against the signing algorithm
For RSA DKIM keys, RFC 8301 requires at least 1024 bits and recommends at least 2048 bits. Those numbers describe RSA keys, not every DKIM algorithm.
Rotate keys without losing the old selector too soon
A new selector lets a sending service publish a replacement key while the old selector remains available for earlier messages. Follow that service's rotation instructions before removing an old key.
Frequently asked questions
Why can a signed message still fail DKIM?
A signature can fail validation if signed parts of the message changed in transit or the matching public key can't be used. Read the receiving server's authentication result alongside the original signature.
Is the signing domain always the address in From?
No. DKIM identifies the domain taking responsibility for the signature. DMARC evaluates how that domain relates to the visible sender's domain.
Connect DKIM to the other records
SPF, DKIM and DMARC
Find out why your emails land in spam, and who else can send mail as you.
SPF record
Lists the servers allowed to send your domain's mail.
DMARC record
Tells receivers what to do with mail that fails, and where to send reports.