SPF Checker
Validate a domain's SPF record and see what it allows
SPF Result
Overview
SPF Mechanisms
Results will appear here
About SPF Checker
Learn more & FAQ
What is SPF?
SPF (Sender Policy Framework) is a TXT record that lists which servers may send email using your domain. Receiving mail servers compare the sending server's IP address with your SPF record; if it isn't listed, the message can be marked as spam or rejected - which protects your domain from being spoofed and your own mail from looking suspicious.
Reading an SPF record
A record starts with v=spf1 and is read left to right. ip4: and ip6: allow specific addresses or ranges, a and mx allow the domain's own web and mail servers, and include: pulls in another domain's SPF - typically your email provider's. The record ends with an all mechanism: -all rejects everything else, ~all soft-fails it (accepted but flagged), ?all is neutral, and +all allows anyone, which defeats the purpose.
How to read your results
The SPF Result card shows whether a record was found and the policy its all mechanism sets. The mechanisms list breaks the record into its parts, and the checks below it flag problems such as multiple SPF records, +all, the deprecated ptr mechanism, or a missing all at the end. The lookup count covers mechanisms in this record only; includes can add more lookups of their own.
Frequently asked questions
What's the difference between ~all and -all?
-all (hard fail) tells receivers to reject mail from servers not listed. ~all (soft fail) tells them to accept it but treat it as suspicious. Many domains start with ~all while they confirm every sender is listed, then move to -all - and with DMARC enforcing, either works well.
Can I have more than one SPF record?
No. A domain must publish exactly one TXT record starting with v=spf1. With two or more, SPF evaluation returns a permanent error and receivers may treat every message as failing. Merge them into one record instead.
What is the SPF 10 DNS lookup limit?
Evaluating SPF may trigger at most 10 DNS lookups - include, a, mx, ptr, exists and redirect each count, including the lookups inside included records. Going over causes a permanent error. Reduce includes or replace them with ip4/ip6 ranges if you're near the limit.
How do I add a new email provider to SPF?
Add the include: value your provider documents (for example include:_spf.google.com for Google Workspace or include:spf.protection.outlook.com for Microsoft 365) to your existing record, before the all mechanism. Don't create a second SPF record.
Is SPF enough to stop spoofing?
Not on its own. SPF checks the hidden envelope sender, not the From address people see. Combine it with DKIM signing and a DMARC policy, which ties both checks to the visible From domain - the Email Security Check tests all three together.