SPF & DMARC Checker
Look up SPF, DMARC and an optional DKIM selector. Use the results to troubleshoot email authentication.
The domain and selector, if provided, are queried through our DNS-over-HTTPS proxy.
How it works
Enter the domain whose records you want to inspect. The checker looks for SPF TXT at that
name and DMARC TXT at _dmarc.<domain>. With a selector, it also looks for
a DKIM record at <selector>._domainkey.<domain>. The checker
shows observed DNS records and basic findings. To verify a particular delivery, inspect the
recipient's message headers. For subdomains, a missing
exact-name DMARC result can coexist with an inherited policy. The checker queries the exact
name, so look up the relevant organizational domain as well.
Read the SPF record and count DNS lookups
Publish one TXT record beginning with v=spf1 at the SMTP envelope sender domain.
Other TXT records can coexist there. Multiple SPF records at that same name cause
permerror. SPF evaluates mechanisms left to right up to the first match.
ip4: and ip6: match addresses or ranges, a checks a
hostname's addresses, mx checks the addresses of its mail exchangers, and
include: matches when the referenced policy returns pass. A redirect=
modifier supplies another policy if no mechanism matches.
all always matches, so put it last if you use it. The prefixes +,
-, ~ and ? mean pass, fail, softfail and neutral,
respectively. Pass is the default qualifier. If there is no match and no redirect, the SPF
result is neutral. Use -all when you have confirmed the authorized senders.
Receivers decide how to handle the authentication result.
The budget is 10 DNS-querying terms per SPF evaluation. Count
include, a, mx, ptr, exists
and redirect when evaluated, including in nested policies. Avoid ptr
in new records. ip4, ip6, all and exp
do not count toward this limit. Exceeding it produces permerror. The tool counts
eligible terms in the top-level record as an estimate, so audit the policies those terms
depend on as well. RFC 7208
lookup limits
Interpret the DMARC tags
| Tag | What it controls |
|---|---|
p | none expresses no DMARC handling preference
for failures. quarantine marks failures as suspicious and reject says the
domain owner considers those uses invalid. RFC 9989 requires receivers to weigh the
policy alongside other evidence when deciding whether to reject. |
rua | Destination for aggregate reports. Use a monitored address. A destination outside the policy domain can require DNS authorization by the report recipient. |
adkim, aspf | Alignment mode for DKIM and SPF,
respectively. The default r accepts a shared organizational domain.
s requires an exact domain match. |
pct | Historical percentage sampling for messages that fail DMARC. The checker still displays the tag when it sees a value other than 100. RFC 9989 retired it. Plan enforcement without assuming receivers will honor a percentage. |
DMARC passes when at least one passing SPF or DKIM identity aligns with the domain in the
visible From. Google and Yahoo require bulk senders to use SPF and DKIM and
publish DMARC, with p=none accepted as a policy floor. Their direct-mail alignment
requirements still apply. RFC 9989,
RFC 9990,
Gmail,
Yahoo
Worked example
example.com. TXT "v=spf1 ip4:192.0.2.0/24 include:_spf.example.org -all"
_dmarc.example.com. TXT "v=DMARC1; p=none; rua=mailto:[email protected]"
These are illustrative records. The SPF record has one top-level term that counts
toward the DNS budget, include:_spf.example.org. A receiver that reaches that
term also evaluates the included policy. A test message with From: [email protected]
and SPF pass for bounces.example.org needs a passing aligned DKIM signature.
A passing signature with d=example.com satisfies that requirement. A published
DKIM key alone only tells you that key data is present.
What to do with your result
Inventory every sending application, including billing, support and bulk mail. Remove stale
SPF terms, consolidate duplicate policies and check nested dependencies. For DKIM, take
s= and d= from a fresh message and query that combination.
Publish one DMARC policy with p=none and request aggregate reports. Confirm
aligned passes for every legitimate stream at the destination, including periodic senders
and forwarding paths you rely on.
Move to p=quarantine, monitor bounces and reports, then move to p=reject
when legitimate delivery is stable and every legitimate stream has valid aligned DKIM.
RFC 9989 cautions that domains whose users post to public mailing lists can disrupt legitimate
deliveries with reject. Consider keeping those domains at quarantine and piloting
reject on a separately configured transactional subdomain.
RFC 9989 forwarding guidance
Use the Gmail and Yahoo authentication
setup guide for record placement and sender requirements. Its pct example
reflects the older specification. Follow the staged policy changes above for a current rollout.
FAQ
What happens if a domain has two SPF records?
If two records at the same DNS name begin with v=spf1, SPF returns permerror. Consolidate the authorized mechanisms into one policy and leave unrelated TXT records in place.
Why does SPF show a lookup error when the checker counts fewer than 10?
The checker counts top-level terms. SPF also counts the eligible terms reached inside includes and redirects. Inspect the full evaluation path for each sending source.
What is the difference between SPF -all and ~all?
When evaluated, -all returns fail and ~all returns softfail. The receiving system decides whether to accept, filter or reject the message.
Does p=none stop someone spoofing my domain?
It publishes a monitoring policy that does not request special handling for DMARC failures. Add a reporting destination and use the resulting data to prepare for enforcement.
Is DMARC pct= still supported?
The old RFC 7489 defined pct as a policy sampling percentage. RFC 9989 marks the tag historic. Treat the checker's coverage row as a description of a legacy record value.
How do I find my DKIM selector?
Read the s= value in a fresh message's DKIM-Signature and check it under the d= signing domain. The selector can also be listed in your mail provider's admin settings.
From the channel
One Open Folder Exposed 3 Microsoft 365 Phishing Ops
Watch safe, hands-on security demonstrations for complete beginners on The Exploit HQ ▸
kev brief
Patch what's actually being exploited.
Subscribe and get the KEV Patch Priority Playbook, free, in your inbox now.
Free. No spam. Unsubscribe anytime. Delivered by Beehiiv.