Check your SPF record and fix it in minutes
Type your domain and this SPF record checker looks up your record and tells you three things: whether you have exactly one, how many of the 10 allowed DNS lookups it uses, and whether it stops other servers sending as you. If something is wrong, you get the record to publish.
What an SPF record says
An SPF record is a list of who may send email for your domain, followed by an instruction for everyone else. Each part has a job, and some parts cost a DNS lookup.
The four mistakes this check catches
- No record. Anyone can send mail as you, and your own mail is more likely to land in spam.
- Two records. Usually left behind when a new email service is added. Receivers then ignore SPF completely.
- Too many lookups. Each new tool you connect (a CRM, a help desk, a newsletter service) adds an include. Past 10, SPF fails for all your mail. So do more than 2 lookups that find no DNS answer at all.
- A weak ending. “+all” lets any server pass; “?all” or no “all” at all does not stop other servers.
How to read the result
- Fix items go to the top under “Fix these first”: no record, two records, or more than 10 lookups. Receivers treat SPF as broken until these are sorted.
- Improve items are weaker: you are close to the lookup limit, or the record ends in “?all” or no “all”. Fix them before you add another email service.
- Pass means one record, 10 lookups or fewer, and an ending that stops other senders. Open the lookup tree to see where each lookup comes from.
The lookup count is the number to watch. It grows each time someone in the business connects a new tool that sends email, and nobody sees it until mail starts failing.
What the standard says
These three rules come straight from the SPF specification, RFC 7208.
“SPF implementations MUST limit the total number of those terms to 10 during SPF evaluation, to avoid unreasonable load on the DNS. If this limit is exceeded, the implementation MUST return “permerror”.”
“If the resultant record set includes more than one record, check_host() produces the “permerror” result.”
“SPF implementations SHOULD limit “void lookups” to two.”
A “permerror” is the standard’s word for a record the receiver could not use. In practice that is the failure this tool is built to catch.
How to fix the common failures
- Over 10 lookups. Remove includes for services you no longer use, then replace fixed-address terms such as “a” and “mx” with “ip4:” or “ip6:” ranges, which cost no lookup. Ask each sender whether it can sign with DKIM instead of needing an include.
- Two records. Copy the terms from both into one record that starts “v=spf1” and ends in a single “all”, publish it, then delete the old ones.
- No record on a domain that does not send mail. Publish “v=spf1 -all”. That tells receivers nobody is allowed to send as that domain.
- Mail still fails after a clean result. SPF checks the hidden envelope sender, so it can pass while the “From” address people see is forged. Check DMARC next.
Questions
What is an SPF record?
A TXT record on your domain that starts with "v=spf1" and lists the servers allowed to send email as you. Receiving servers look it up for every message and use it to decide whether mail claiming to be from you is genuine.
What is the SPF 10-lookup limit?
RFC 7208 lets receivers make at most 10 DNS lookups while checking one SPF record. Every include, a, mx, ptr and exists term, and the redirect modifier, counts, and so do the ones inside each include. Go over 10 and SPF fails for every message, even ones from your real servers.
Should my record end in ~all or -all?
"~all" (soft fail) asks receivers to treat other senders as suspicious; "-all" (fail) asks them to reject. Both are fine once DMARC is enforcing. Use "~all" while you confirm every service that sends for you, then decide. Never use "+all" or "?all", which allow anyone.
Can I have two SPF records?
No. A domain must have exactly one SPF record. With two, receivers treat SPF as broken. Merge them into one: keep a single "v=spf1", combine the terms, and end with one "all".
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. DKIM and DMARC close those gaps, which is why Google requires all three from anyone sending more than 5,000 messages a day to Gmail.
More email checks
Related tools and guides
Accreditations are reported from public sources, with the source linked on each listing.