Email Security
SPF Record Checker
About SPF records
SPF lists which servers may send mail for your domain. A receiving server checks the sending address against that list and uses the result as one signal in deciding whether to accept the message.
What this checks
The domain's TXT records are searched for one beginning v=spf1. Mechanisms and qualifiers are parsed, include and redirect references are followed, and the number of DNS-querying terms is counted against the limit of ten that RFC 7208 imposes.
How to read the results
The qualifier on the final all mechanism is the important part. -all means anything not listed should be rejected. ~all is a softer fail, usually treated as suspicious rather than rejected. +all authorises the entire internet to send as your domain and provides no protection whatsoever.
Common fixes
If the lookup count exceeds ten, receivers may stop evaluating and treat the record as permanently broken; reduce it by removing unused include statements or flattening them to ip4 ranges. Publish exactly one SPF record: two records are an error, not a merge. Replace +all immediately.
Frequently asked
- Why does the ten lookup limit exist?
- Each include, a, mx, ptr, exists and redirect term costs a DNS query. The cap stops one message from triggering an unbounded number of lookups.
- Is SPF enough on its own?
- No. SPF breaks when mail is forwarded, because the forwarding server is not in your list. DKIM survives forwarding, and DMARC ties the two together.
Read next
- SPF and the ten DNS lookup limit Why SPF stops at ten DNS lookups, how to count yours, and the three ways to get back under the limit without dropping a sender.
- Email security fundamentals: SPF, DKIM and DMARC What each of the three records checks, why alignment is the piece that ties them together, and the order to deploy them in.