Check a domain's email security
MX, SPF, DKIM and DMARC in one check, with the exact fix for anything that's wrong. Runs in your browser.
What this checks
Four DNS records decide whether mail from your domain is trusted and whether someone else can pretend to be you. This page looks each one up and tells you what's wrong in plain English, with a record you can paste into your DNS provider.
- MX
- Where mail for your domain is delivered, and which provider runs it.
- SPF
- The list of servers allowed to send as your domain. It must be a single record and stay within 10 DNS lookups.
- DKIM
- A public key that lets receivers verify the signature on your messages. Each sending service publishes its key under a name called a selector.
- DMARC
- Your instruction for mail that fails SPF and DKIM: deliver it, send it to spam or reject it. It's also where you ask for reports.
How the grade works
The grade counts only what could be verified. Everything passing earns an A. One warning gives a B, two or more give a C. One failed check is a D, and two or more is an F.
A result we couldn't verify never lowers the grade. The most common case is DKIM: if no key is found at a common selector, it may be set up under a name we didn't guess, so the grade carries a note asking for your selector instead.
A retired DKIM selector (a key published with an empty p=) is normal after a key rotation, so it never counts as a failure. If the only keys found are retired, DKIM shows as unknown until you enter your current selector.
For DKIM key size, a 1024-bit key only costs a grade when it's the strongest key found. If another selector has a 2048-bit key, the weaker one is noted on the DKIM card.
What happens to the domain you enter
Your browser sends the DNS lookups straight to Cloudflare's public resolver, or Google's if Cloudflare doesn't answer. That resolver sees the lookups, as with any DNS query. There's no server of ours in between, and the domain is never sent to us.
Questions
What's the difference between ~all and -all?
Both end an SPF record and say what to do with mail from servers that aren't listed. -all is a hard fail: that mail isn't authorized. ~all is a soft fail: it isn't authorized, but the receiver should accept it and treat it with suspicion, often by sending it to spam. Once your DMARC policy is enforcing, DMARC decides what happens to mail that fails, so ~all is a common, reasonable choice. Switch to -all once you're sure every service that sends as your domain is listed. Avoid +all and ?all: +all lets any server pass, and ?all says nothing either way.
Why does DKIM say unknown?
DNS can't list a domain's DKIM keys. Each key lives under a name chosen by the sending service, called a selector, and a key can only be looked up if you know that name. When you leave the selector blank, this check tries common ones: google, selector1, selector2, default, k1, s1, s2, dkim and mail. If none of them has a key, DKIM may still be set up under another name, so the result is unknown rather than a failure. Find your selector in the s= tag of the DKIM-Signature header on a message you sent, enter it and check again. See How to find your DKIM selector.
What does "retired selector" mean?
A DKIM record with an empty p= tag, such as v=DKIM1; p=, means the key at that selector has been revoked. Mail providers often leave one behind after rotating to a new key, so it's normal and never counts as a failure here. It only matters if your mail is still signed with that selector: DKIM then fails for those messages. The s= tag in the DKIM-Signature header of a recent message shows which selector is in use.
Should I go straight to p=reject?
Usually not. p=reject tells receivers to refuse every message that fails DMARC, including legitimate mail from services you forgot send as your domain, such as a CRM, an invoicing tool or a website form. Start with p=none and a rua address so you get aggregate reports. Fix SPF or DKIM for every legitimate sender the reports show, then move to p=quarantine, and then to p=reject. A domain that never sends email is the exception: it can publish p=reject straight away, along with the SPF record v=spf1 -all. See How to set up DMARC step by step.
How long do DNS changes take to show up here?
Each check asks Cloudflare's public DNS resolver, or Google's if Cloudflare doesn't answer, and this page keeps no copy between checks. Those resolvers may serve a cached answer until the old record's TTL (time to live) runs out, so a change can take anywhere from a few minutes to the length of that TTL to appear here. If you added a record that didn't exist before, a cached "no record" answer can linger for up to your zone's negative-caching time, which is set in its SOA record. Your DNS provider's console shows each record's TTL.