DKIM checker
The domain or address you check is used for this lookup only. It is never saved to our database or sent to our analytics.
The short answer
This DKIM checker reads the DKIM record at your selector's name in public DNS, follows any CNAME, and checks the key a receiving mail server would use. A pass means a readable record with a valid RSA or Ed25519 key, at least 2,048 bits for RSA, not revoked and not in testing mode.
By The Rasket Team · Last updated
What is a DKIM selector and where do I find mine?
A DKIM selector is the name a sending service gives one of your domain's signing keys. Each key is published as a TXT record at <selector>._domainkey.<your domain>, so several services and keys can sit side by side. DKIM records cannot be listed: a receiver learns the selector only from the signature on each email, and so does this checker.
To find yours, open an email you sent through the service, show its original message or headers, and find the DKIM-Signature header. The selector is the value after s=, and the signing domain is the value after d=:
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=example.com; s=s1; t=1763640000;
h=from:to:subject:date:message-id;
bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=;
b=dzdVyOfAKCdLXdJOc9G2q8LoXSlEniSbav+yuU4zGeeruD00lszZ…That signature's key is the record at s1._domainkey.example.com, so enter example.com and s1 above. How DKIM works with SPF and DMARC is in DKIM, SPF and DMARC explained, and the short version is in the DKIM glossary entry.
How to read the result
- Pass
- This part of the record is right: receivers can find the key, read it and use it.
- Warning
- It works, but is weaker than it should be or may be ignored by some receivers: an RSA key under 2,048 bits, testing mode left on, v=DKIM1 out of place, or a revoked key on a selector found among the common names.
- Fail
- Receivers cannot use this key, so mail signed with this selector fails DKIM. The row says what to change.
- Not checked
- No common selector name answered with a DKIM record. That does not mean there is no DKIM: enter the selector from your DKIM-Signature header. If the check says it could not finish, public DNS did not answer in time or its answers disagreed, which happens just after a change; try again in a minute.
Check a DKIM record
- 1Enter the domain. Type the domain your mail is signed for, the d= value of its DKIM-Signature header, like example.com.
- 2Add the selector. Paste the s= value from the same header. Leave it blank to try common selector names.
- 3Run the check. Press Check DKIM. The record is read from public DNS, through any CNAME.
- 4Fix what fails. Change each row marked fail at your DNS host or sending service, then check again.
Common problems and fixes
| Problem | Why it happens | Fix |
|---|---|---|
| No DKIM record for this selector | The selector is misspelled, the record was added at the wrong name, or it has not reached public DNS yet. | Copy the selector from s= in your DKIM-Signature header, and check the record's name at your DNS host. |
| The record is at the wrong name | The full name, like s1._domainkey.example.com, was typed into a DNS host's name field, which adds your domain again. | Enter only s1._domainkey as the record's name. |
| The CNAME points to a name with no key | The CNAME target is mistyped, or the sending service has not published the key yet. | Copy the target again from your sending service, and finish the domain setup there. |
| Several TXT records at the selector | A long key was saved as separate records instead of one record with several strings. | Delete them and publish one TXT record holding the whole value. |
| Backslashes or quotation marks in the record | A value copied from a zone file kept its \; escapes or its quotes. | Remove the backslashes and quotation marks. The DNS host adds its own quotes. |
| The key does not decode | The p= value was cut short, or picked up extra characters, when it was pasted. | Copy the full p= value again and replace it. |
| RSA key shorter than 2,048 bits | The key was made years ago, or with an old default length. | Create a 2,048-bit key with your sending service and publish it under a new selector. |
| Testing mode left on (t=y) | t=y was kept from the first setup. | Remove y from t= once your mail passes DKIM. |
| The key is revoked (empty p=) | The selector was retired, but mail is still signed with it. | Sign with your current selector, or publish the current key at this one. |
Frequently asked questions
What is a DKIM checker?
A DKIM checker looks up the public key a domain publishes for DKIM and tests it: that a record exists at the selector's name, that it can be read, and that the key is valid, not revoked and long enough for receivers to accept.
How do I find my DKIM selector?
Open an email you sent, show its original headers, and find the DKIM-Signature header. The selector is the value after s=. Each sending service uses its own, and one domain can have several.
Why does the checker say no selector was found?
DKIM records cannot be listed, so without a selector the checker can only try common names. Your domain may still have DKIM at a name it did not try. Enter the selector from your DKIM-Signature header to check it.
What DKIM key length should I use?
Use a 2,048-bit RSA key. Receivers must not accept keys shorter than 1,024 bits. A 2,048-bit key is longer than one 255-character TXT string, so it is published as one record with two strings, which this checker joins before checking.
What does an empty p= mean in a DKIM record?
An empty p= means the key has been revoked, and mail signed with that selector fails DKIM. It is the right way to retire a selector, as long as your mail is signed with a newer one.
Does a passing DKIM record mean my mail passes DKIM?
Not on its own. This check reads the published key. Each message also needs a signature made with the matching private key, and DMARC needs the signing domain to match your From domain.
Sources
3 primary sources, each read on the date shown.
See all sourcesHide sources
Keep reading
- GlossaryDKIMDKIM signs outgoing mail with a private key and publishes the matching public key in DNS, under a label called a selector. A receiving server fetches the key, checks the signature, and learns that the message was not altered on the way and really came from a sender your domain authorized. It survives forwarding, which is why it matters more than SPF alone.
- GlossaryDMARCDMARC tells receiving servers what to do with mail that claims to be from your domain but fails DKIM and SPF. You publish one TXT record naming a policy, none, quarantine or reject, and an address for the reports. It also demands alignment: the domain that passed authentication has to match the one a reader sees in the From header.
- GlossarySPFSPF is a TXT record listing which servers may send mail for a domain. A receiving server looks up the record for the return path domain and checks whether the machine that connected is on the list. It breaks when a message is forwarded, because the forwarding server is not on your list, and that is why SPF on its own is not enough.
- FeatureDomainsAdd a domain, publish the generated record set and send from it. A 2048-bit DKIM key per domain, a custom return path, and verification that runs on its own.
- ToolSPF checkerCheck your domain's SPF record free: every term, the DNS lookup count against the limit of 10, void lookups, the all term and the IP ranges it allows.
- ToolDMARC checkerCheck your domain's DMARC record free: its policy in plain words, every tag explained, report addresses verified, and the next safe step to take.
Sending with Rasket? Add your domain and Rasket writes every record it needs, adds them for you at DNS hosts it can connect to, and checks each one until it is live. How domains work in Rasket.