Skip to content
Triageby WETNav

Free tool · DNS lookups only

Email domain security check

Can someone send mail as your domain and have it delivered? Check SPF, DMARC, DKIM, MX, MTA-STS, TLS-RPT and BIMI for any domain, get a grade with every point it lost, and copy the records that fix it.

By Published Updated

Reads public DNS records through DNS over HTTPS (Cloudflare, Google as a fallback). Only the DNS names are sent; nothing is stored.

Why domain authentication matters for phishing

Business email compromise works best when the message really looks like it came from the CEO, the finance team or a supplier. If a domain has no DMARC record, or sits at p=none, an attacker can put From: [email protected] on a message sent from any server, and most receivers will deliver it: your own staff, your customers, and your suppliers' accounts payable teams. Filters catch some of it on content and reputation, but the domain gives them no instruction to reject it.

With p=reject, every receiver that enforces DMARC (Microsoft 365, Gmail, Yahoo and most gateways) refuses mail that does not pass SPF or DKIM for an aligned domain. Attackers then have to register a lookalike domain or compromise a real mailbox, both of which leave more evidence. That is why DMARC enforcement carries most of the grade here.

The same check works for triage. When a reported message claims to be from a domain at p=reject and your server recorded dmarc=pass, it was not spoofed: it came from that domain's own infrastructure, so think compromised account, an abused sending service or a reply-chain hijack. When the claimed domain is at p=none and the message failed DMARC, it was almost certainly forged and delivered anyway. Read the result in the email header analyzer, and see how to read SPF, DKIM and DMARC for how the three fit together.

What each record does

SPFRFC 7208
TXT at the domainLists the servers allowed to send with this domain in the envelope. On its own it does not protect the From address.
DMARCRFC 7489
TXT at _dmarc.domainRequires SPF or DKIM to align with From, and tells receivers to quarantine or reject mail that does not. The record that actually stops exact-domain spoofing.
DKIMRFC 6376, RFC 8301
TXT at selector._domainkey.domainA public key that verifies signatures on outgoing mail. Survives forwarding, unlike SPF, so it carries DMARC for forwarded mail.
MXRFC 5321, RFC 7505
MX at the domainWhere the domain receives mail, and through which gateway. A null MX (0 .) says the domain takes no mail.
MTA-STSRFC 8461
TXT at _mta-sts.domain, policy over HTTPSTells sending servers to require TLS with a valid certificate, so an attacker on the path cannot strip STARTTLS and read or redirect inbound mail.
TLS-RPTRFC 8460
TXT at _smtp._tls.domainAsks senders for daily reports of TLS failures delivering to you: how you find out MTA-STS is blocking mail.
BIMIBIMI draft
TXT at default._bimi.domainShows your logo next to authenticated mail. Only works with DMARC enforcement, and in Gmail and Apple Mail with a mark certificate.

The SPF 10-lookup limit, and why it breaks mail

Every include, a, mx, ptr, exists and redirect costs one DNS lookup, and so does every one of those inside the records you include. Microsoft 365 (include:spf.protection.outlook.com) and Google Workspace (include:_spf.google.com) cost one each, because their records list IP ranges directly, but other services nest includes of their own, and every marketing, CRM, ticketing and payroll platform a team adopts adds more. RFC 7208 caps the total at 10. Past it, receivers stop and return permerror: SPF fails for every message, including the legitimate ones, and DMARC can only pass through DKIM.

The check follows every include, counts the total, and flags loops, includes that publish no SPF record, more than two void lookups (names that return nothing), the deprecated ptr mechanism and include= typos that receivers silently ignore. To get back under 10, remove services you no longer use, replace a and mx with the actual ip4/ip6 ranges, and move bulk senders to a subdomain such as news.example.com with its own SPF and DKIM. Flattening includes into IP lists works but goes stale when the provider changes its ranges.

Rolling out DMARC: none, quarantine, reject

1. Monitor. Publish v=DMARC1; p=none; rua=mailto:[email protected]. Receivers send daily aggregate reports listing every IP that sent mail as your domain and whether SPF and DKIM passed and aligned. Use a DMARC report service or a parser; the raw XML is hard to read at volume.

2. Fix your senders. Every legitimate source must pass with an aligned domain: add it to SPF or, better, have it sign with DKIM as your domain. Forwarded mail and mailing lists fail SPF by design; DKIM carries them.

3. Enforce. Move to p=quarantine, optionally with pct=25 and rising, then to p=reject; pct=100. Leave sp unset or equal to p, so attackers cannot use invented subdomains such as billing.example.com. Domains that send no mail can go straight to p=reject with v=spf1 -all and a null MX.

How the grade is calculated

Every domain starts at 100 and loses points for each finding, up to a limit per check: SPF 25, DMARC 40, DKIM 10, MTA-STS 5, TLS-RPT 2. MTA-STS and TLS-RPT count only for domains with MX records; MX and BIMI are informational. A is 90 or more, B 80, C 70, D 50, and F is below 50. Two rules override the points: without DMARC enforcement the grade is at most D, because the domain can be spoofed, and SPF +all is always an F, because it makes DMARC pass for forged mail.

CheckFindingPoints
SPFNo SPF record, more than one, or +all−25
SPFPermerror: syntax error, more than 10 DNS lookups, more than 2 void lookups, include without SPF, loop−20
SPF?all or no all (unlisted servers are neutral)−10
SPF~all while DMARC is not enforcing−5
SPFptr mechanism (deprecated)−3
DMARCNo DMARC record, or more than one−40
DMARCp=none, or p missing or invalid (monitoring only)−30
DMARCpct below 100−10
DMARCsp=none under an enforcing p (subdomains spoofable)−10
DMARCp=quarantine instead of reject−5
DMARCsp=quarantine under p=reject−5
DMARCNo rua (no aggregate reports)−5
DMARCReport address at another domain that has not authorized it−3
DKIMProbed key shorter than 1024 bits−10
DKIMProbed key is not a valid key−5
DKIMProbed key of 1024 bits (2048 recommended)−3
MTA-STSMissing or invalid, on a domain with MX hosts−5
TLS-RPTMissing or invalid, on a domain with MX hosts−2

DKIM costs points only for a weak key the probe actually finds: selectors are chosen by the sender, so not finding one proves nothing. For a selector from a real message, use the DKIM checker.

More free triage tools

Questions

Can my domain be spoofed if it has SPF?

Yes. SPF checks the envelope sender (the Return-Path), not the From address people see. An attacker can use their own domain in the envelope, pass SPF for it, and put your domain in From. DMARC is what ties the two together: it requires SPF or DKIM to pass for a domain aligned with From, and p=quarantine or p=reject tells receivers what to do when neither does. Without DMARC enforcement, exact-domain spoofing still reaches inboxes.

What is the SPF 10 DNS lookup limit?

RFC 7208 section 4.6.4 limits SPF evaluation to 10 terms that cause DNS queries: include, a, mx, ptr, exists and the redirect modifier, counted through every nested include. ip4, ip6 and all are free. Past 10, receivers return permerror, SPF fails for legitimate mail too, and DMARC has to rely on DKIM alone. Remove includes for services you no longer use, replace a and mx with ip4 and ip6 ranges, or send bulk mail from a subdomain with its own SPF record.

Should SPF end in -all or ~all?

With DMARC at p=quarantine or p=reject the difference is small: DMARC decides what happens to failing mail, and ~all avoids receivers rejecting forwarded mail on SPF alone before DKIM can rescue it (RFC 7489 section 10.1). Without DMARC enforcement, -all is the stronger signal. Never use +all, which authorizes every server, or ?all, which says nothing.

How do I move DMARC from p=none to p=reject safely?

Publish p=none with a rua address and read the aggregate reports for two to four weeks. Every legitimate source (your mail platform, CRM, ticketing, marketing and payroll services) must pass SPF or DKIM with an aligned domain. Then move to p=quarantine, optionally with pct below 100 for a short ramp, keep watching the reports, and finish at p=reject with pct=100. Keep rua after you get there: it shows new senders and spoofing attempts.

Why does the check find no DKIM key when my mail is signed?

DKIM keys live at selector._domainkey.domain, and the sender chooses the selector. The probe tries common ones (selector1 and selector2 for Microsoft 365, google, default, k1, s1, s2, dkim, mail), but services such as Amazon SES use random tokens. Take the s= value from a DKIM-Signature in a real message and look it up in the DKIM checker. A missing selector costs no points.

What does the check send, and where?

Only DNS names, as DNS over HTTPS queries to Cloudflare (Google as a fallback): the domain, _dmarc (and the parent domain's for a subdomain), _mta-sts, _smtp._tls, default._bimi, each SPF include, the report authorization record for a third-party DMARC report address and, if you ask, the DKIM selectors. The MTA-STS policy file is not fetched; the check links to it instead. Nothing is stored, and analytics record only the grade, never the domain.