Tools / Email authentication
SPF Lookup
Fetch a domain's SPF record and read it term by term, with checks for the mistakes that break delivery.
How to read an SPF record
A record starts with v=spf1 and is read left to right. Each term names a group of senders and what to do with them; the first term that matches the sending server decides the result.
v=spf1 ip4:198.51.100.0/24 include:_spf.example.net mx -all
This says: accept mail from the 198.51.100.0/24 range, from anything the SPF record of _spf.example.net allows, and from the domain's own mail servers; treat everything else as unauthorised.
Mistakes this tool flags
- Two SPF records. A domain may publish only one. Two records cause a permanent error, and receivers treat that as a failure.
+all. Authorises every server on the internet, which defeats the record.- No
allat the end. Unlisted senders then get a neutral result, so the record protects nothing. - The
ptrmechanism. Slow and discouraged by the specification. - Too many lookups. See the 10-lookup limit below.
Questions and answers
What is an SPF record?
SPF (Sender Policy Framework) is a TXT record in which a domain lists the servers allowed to send email using it in the envelope sender address. Receiving servers compare the connecting server's IP address with that list.
What is the difference between ~all and -all?
-all (fail) says mail from unlisted servers is unauthorised. ~all (soft fail) says it is probably unauthorised but should be accepted and marked. With a DMARC policy in place the two behave almost the same; -all is the stricter statement.
What is the 10-lookup limit?
Evaluating an SPF record may trigger at most 10 further DNS lookups, counting every include, a, mx, exists, ptr and redirect, including those inside included records. Beyond that, receivers return a permanent error and SPF fails. This tool counts the lookups in the record itself; includes can add more.
Is SPF enough on its own?
No. SPF checks the hidden envelope sender, not the From address people see, and it breaks when mail is forwarded. Pair it with DKIM and a DMARC policy.