SPF checker
Every include expanded, lookups counted, the fix for each problem.
Reads the domain's SPF record from public DNS the way a receiving server does: one record, every include opened up, the 10 DNS lookups and 2 void lookups counted, and the all at the end.
What the SPF checker looks at.
Enter a domain to see its SPF record with every include expanded, how many of the 10 DNS lookups it uses, any void lookups and what its all says, with the fix for each problem.
Public DNS only, read live each time, evaluated the way a receiving server does it.
One record
RequiredExactly one TXT record that starts with
v=spf1. A second one makes SPF fail for every message, and it is the most common mistake we see.10 DNS lookups
LimitEvery
include,a,mx,ptr,existsandredirectcosts one lookup, nested ones too. At the 11th, receivers stop and SPF fails.Void lookups
LimitNames in the record that return nothing. More than 2 is an error, and even one is a term doing nothing.
The include tree
ExpandedEvery include fetched live and opened up, with what each branch costs, so you can see which sender uses your budget.
The all mechanism
Policy-allfails other servers,~allsoft fails them,?allsays nothing and+alllets anyone pass as you.Broken terms
ErrorsIncludes that point at a name with no SPF record, include loops, misspelled mechanisms and the deprecated
ptr.
How to fix a failing SPF record.
Over 10 lookups? First remove includes for services you no longer send with. Then read the tree: a sender that costs four or five lookups can sometimes be replaced with its ip4: ranges, though you then have to keep them current yourself. The SPF record generator shows what each common sender costs and warns before you pass 10.
Two SPF records? Merge them into one: a single v=spf1, every include and IP range from both, and one all at the end. Paste both into the SPF generator and it merges them. A subdomain that sends, such as a bounce domain, keeps its own record and does not count against the root.
SPF only checks the envelope sender, not the From address people see. Check DMARC next, which ties SPF and DKIM to your From domain, or run the full domain check for every record at once.
Records say what a domain allows. To see SPF evaluated on a real message, with the IP your mail really came from, send one to the email deliverability test, or paste a received message's headers into the email header analyzer. SPF, DKIM and DMARC explained walks through all three.
Questions.
What does an SPF checker do?
What is the SPF 10 DNS lookup limit?
Should I use ~all or -all?
Can a domain have two SPF records?
What is a void lookup?
Does SPF stop people spoofing my domain?
More free tools
All free toolsCheck
- Domain checkMX, SPF, DKIM, DMARC, BIMI, MTA-STS and TLS-RPT in one report, with a score and a fix for each row.Open tool
- DMARC checkerPolicy, subdomain policy, percentage, report addresses and alignment, and the record to publish next.Open tool
- DKIM checkerFinds the key at your selector, or at 40 common ones, and reads its type and length.Open tool
- MX lookupMail hosts in priority order, their IPv4 and IPv6 addresses, and the mail provider behind them.Open tool
- BIMI checkerThe BIMI record, the logo fetched and checked against SVG Tiny PS, the certificate, and DMARC readiness.Open tool
- Blacklist checkerAn IP or domain against 9 public DNS blocklists, with the return code, the reason and the removal page.Open tool
- Reverse DNS lookupThe PTR record of an IPv4 or IPv6 address, and whether that name resolves back to the same IP, as mail servers check it.Open tool
- Email checkerAn address's syntax, whether its domain accepts mail, and flags for disposable and role addresses. Only the domain is looked up.Open tool
Fix
- SPF record generatorPick your senders and get one merged SPF record with its lookup count. Paste two records to merge them.Open tool
- DMARC generatorA DMARC record for each step from monitoring to reject, with report addresses and alignment.Open tool
- DKIM generatorA 2048-bit RSA key pair made in your browser, and the DNS record to publish. Nothing is sent to us.Open tool
Test
- Email header analyzerPaste the headers of a message: every hop and its delay, SPF, DKIM and DMARC results, and Microsoft, Gmail and Yahoo signals. Parsed in your browser.Open tool
- Email deliverability testSend one real email and see SPF, DKIM and DMARC results, blocklists, a spam score and the fix for each problem.Open tool
- Email subject line testerLength, how Gmail, Outlook and iPhone cut it off, caps, punctuation, emoji, spam phrases and unfilled merge tags, scored with each deduction.Open tool
- Spam word checkerPaste a subject and body to highlight phrases that read as spam, grouped by why. Checked in your browser.Open tool
- HTML email testerPaste the HTML of an email: preview it on desktop, phone and dark mode, see what Gmail, Outlook, Apple Mail and Yahoo don't support, then send it for real.Open tool