DMARC & DKIM Checker
Check a domain's email authentication, then build the records to fix it
Leave blank to probe about forty common selectors. Separate several with commas.
Results
Load your live record to start from it, see what changes, and check your mail is ready before you enforce.
Rollout stageTXT_dmarcBIND zone-file format
Compared with your live record
Find the keys already published, so a new selector does not clash and an old one can be rotated or revoked safely.
Published keys
Leave blank for a dated selector, which makes the next rotation obvious.
PEM, plain base64 or a whole v=DKIM1 record. The key type and length are detected for you.
Rotation plan
Install on your mail server
About DMARC and DKIM
Email was designed without any way to prove who sent a message. Three DNS records now fill that gap, and they only work properly together: SPF lists the servers allowed to send for your domain, DKIM adds a cryptographic signature that proves a message was not altered and came from someone holding your key, and DMARC ties both to the From address people actually see and tells receivers what to do when the checks fail.
Since February 2024 Google and Yahoo have required DMARC and DKIM from anyone sending in bulk, and Microsoft followed for Outlook.com in May 2025. Without them, mail increasingly lands in spam or is refused.
How DMARC decides
A message passes DMARC when either SPF or DKIM passes and the domain that passed is aligned with the visible From domain. Relaxed alignment (the default) accepts a subdomain – mail.example.co.uk aligns with example.co.uk; strict alignment needs an exact match. That is why DKIM matters so much: forwarding and mailing lists routinely break SPF, but a DKIM signature survives the journey.
"v=DMARC1; p=quarantine; rua=mailto:dmarc@example.co.uk"
A safe rollout
- Publish
p=nonewith arua=address. Nothing changes for delivery, but daily aggregate reports start arriving. - Read the reports for two to four weeks. Identify every legitimate service sending as you – your mailbox provider, CRM, invoicing, newsletter platform – and make sure each is covered by SPF and signing with DKIM.
- Move to
p=quarantineand keep it for at least a month. To phase it in, add the testing flagt=y, which asks receivers to apply one step less than the stated policy. RFC 9989, which replaced the original DMARC specification in May 2026, introducedt=and removed the olderpct=percentage tag. - Finish at
p=rejectif it suits your domain. Spoofed mail is now refused outright. RFC 9989 advises againstp=rejectfor domains whose users post to mailing lists, because a list changes messages in ways that make them fail and the list's subscribers then refuse them; such domains can stay atp=quarantine.
Aggregate reports are XML and arrive in volume. A free processing service (Cloudflare DMARC Management, Postmark, dmarcian's free personal plan and others) turns them into something readable. When the report address is on a different domain from yours, that domain must publish an authorisation record – this checker tests for it.
DKIM selectors
A domain can have many DKIM keys at once, each published under its own selector: selector._domainkey.example.co.uk. Each sending service normally uses its own – Google Workspace uses google, Microsoft 365 uses selector1 and selector2, SendGrid s1 and s2.
DNS offers no way to list selectors, so when you leave the selector box empty this tool probes about forty common ones. If yours is custom it will not be found that way. To find it, open a message you sent in any mail client, view the original source, and look at the DKIM-Signature header: the s= value is the selector and d= is the signing domain.
Key length
RFC 8301 sets 1024-bit RSA as the minimum and recommends 2048. Signatures made with keys shorter than 1024 bits must not be accepted as valid. A 2048-bit key is longer than the 255-character limit of a single TXT string, so it has to be split into several quoted strings in the same record; most DNS control panels do this for you, and the zone-file output above shows the correct form for those that do not. Ed25519 keys are short and strong, but not every receiver verifies them yet, so publish one alongside an RSA key rather than instead of it.
Rotating a DKIM key
Change a key you manage yourself every six to twelve months, and at once if the private key may have leaked. The safe way is to publish the new key under a new selector, never by overwriting the old one: a message signed a moment before the switch can still be queued or in transit, and it needs the old key to verify. Choose Rotate a key in the generator for a dated plan:
- Publish the new selector alongside the old one, and confirm it with Check it is published.
- After the old record's TTL has passed, switch your mail server to sign with the new selector.
- A week later, revoke the old selector by publishing it with an empty key:
v=DKIM1; p=. - After about a month, delete the revoked record and destroy the old private key.
Keys published as a CNAME to your provider – common with Microsoft 365, SendGrid and Mailchimp – are rotated on the provider's side (Microsoft 365 leaves you to start the rotation in its admin portal), so there is nothing for you to change in DNS.
Privacy
The checker sends the domain and selectors to our server, which queries Cloudflare's DNS-over-HTTPS resolver; nothing is stored. The record generators run in your browser: the buttons that load or check live records send only the domain and selectors, exactly as the checker does. DKIM key pairs are created with your browser's Web Crypto API, and pasted public keys are analysed on the page; the private key never leaves it.
Common questions
What does a DMARC policy of p=none do?
A DMARC policy of p=none tells receivers to take no action on mail that fails DMARC, so delivery is unchanged. Its purpose is monitoring: with a rua= address in the record, receivers send aggregate reports showing who is sending as your domain. It does not stop spoofed mail, so treat it as the first step towards quarantine or reject.
What is the difference between SPF, DKIM and DMARC?
SPF, DKIM and DMARC are three DNS records that work together to authenticate email. SPF lists the servers allowed to send for a domain, DKIM adds a cryptographic signature proving a message was not altered, and DMARC ties both to the visible From address and tells receivers what to do when the checks fail.
How do I find my DKIM selector?
You can find your DKIM selector in the DKIM-Signature header of a message you have sent. Open the message, view its original source and look for the s= value, which is the selector; d= is the signing domain. DNS offers no way to list selectors, so they cannot be discovered from the domain name alone.
Can DMARC pass if SPF fails?
DMARC can pass when SPF fails, provided DKIM passes and the signing domain is aligned with the visible From domain. DMARC needs only one of the two checks to pass with alignment. This is why forwarded mail, which routinely breaks SPF, can still pass DMARC when the original DKIM signature survives the journey.