Email security tool
SPF, DMARC & MX Checker
Verify whether a domain is protected against email spoofing by inspecting its live _dmarc policy, v=spf1 sender rules, and inbound MX servers.
How SPF and DMARC protect a domain
Anyone can put your domain in the From line of an email. SPF and DMARC let receiving mail servers tell your real mail from forgeries:
- SPF (Sender Policy Framework) is a TXT record on your domain listing the servers allowed to send its mail, such as
v=spf1 include:_spf.google.com ~all. The ending says what to do with everyone else:-allfails them,~allsoft-fails them, and+allallows anyone, which defeats the point. - DMARC is a TXT record at
_dmarcin front of your domain. It tells receivers what to do when a message fails SPF and DKIM:p=noneonly reports it,p=quarantinesends it to spam, andp=rejectblocks it.
How the grade is calculated
The checker reads your live SPF, DMARC and MX records and adds up points:
- SPF: 3 points for
-all, 2 for~all, 1 for any other ending or for more than one SPF record, and 0 for+allor no SPF record. - DMARC: 4 points for
p=reject, 3 forp=quarantine, 1 forp=noneor an unrecognized policy, and 0 for no DMARC record. - MX: 1 point for at least one MX record.
7 points or more is an A+, 5 or 6 an A, 3 or 4 a B, 2 a C, and anything less a D. A domain with -all, p=reject and mail servers scores 8.
How to raise your grade
- Publish one SPF record that lists every service sending mail as your domain, ending in
~allwhile you check nothing is missing. If you have two SPF records, merge them: more than one is an error. - Start DMARC in monitoring mode with
v=DMARC1; p=none; rua=mailto:followed by an address that collects the reports. They show everyone sending mail as your domain. - Enforce it. Once the reports show only your own services, move to
p=quarantine, thenp=reject, and tighten SPF to-all.
This matters for delivery too. Since February 2024, Gmail requires anyone sending more than 5,000 messages a day to Gmail addresses to publish SPF, DKIM and DMARC, and Yahoo has similar rules for bulk senders.
What about domains that never send email?
Lock them down so nobody can send mail as them: publish v=spf1 -all, a DMARC record with p=reject, and optionally a null MX record (0 .) to say the domain accepts no mail either. That setup scores an A+ here.
Does the checker test DKIM?
No. A DKIM key lives under a selector name, such as google._domainkey, that depends on your email provider, so it can't be found from the domain alone. Check it in your provider's admin console.
To see the raw TXT and MX records, use the DNS lookup tool.