Skip to content
NewA free test that shows whether your emails will reach the inbox.
Get started

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

    Required

    Exactly 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

    Limit

    Every include, a, mx, ptr, exists and redirect costs one lookup, nested ones too. At the 11th, receivers stop and SPF fails.

  • Void lookups

    Limit

    Names in the record that return nothing. More than 2 is an error, and even one is a term doing nothing.

  • The include tree

    Expanded

    Every include fetched live and opened up, with what each branch costs, so you can see which sender uses your budget.

  • The all mechanism

    Policy

    -all fails other servers, ~all soft fails them, ?all says nothing and +all lets anyone pass as you.

  • Broken terms

    Errors

    Includes 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?
It reads the SPF record a domain publishes in DNS and evaluates it the way a receiving mail server would: it checks there is exactly one record, expands every include, counts the DNS lookups against the limit of 10, counts void lookups and reads the all mechanism at the end.
What is the SPF 10 DNS lookup limit?
RFC 7208 lets a receiver make at most 10 DNS lookups while it evaluates one SPF record, counting include, a, mx, ptr, exists and redirect, including the ones inside nested includes. IP ranges (ip4 and ip6) and all cost nothing. At the 11th lookup the result is a permanent error, and SPF fails for every message.
Should I use ~all or -all?
Both stop other servers from passing SPF. With DMARC at quarantine or reject, ~all is the common choice: DMARC then decides, and a forwarded message can still pass on its DKIM signature. Use -all when every sender is listed and you want SPF alone to reject. Never use +all, which lets any server pass.
Can a domain have two SPF records?
No. If a domain publishes two TXT records that start with v=spf1, receivers return a permanent error and SPF fails. Merge them into one record with every include from both and a single all at the end.
What is a void lookup?
A DNS lookup in an SPF record that returns no answer: a name that does not exist, or a name with no address or MX records. RFC 7208 allows at most two; more makes SPF fail. Each void lookup is usually an include or a mechanism for a service you no longer use.
Does SPF stop people spoofing my domain?
Not alone. SPF checks the envelope sender (the return path), not the From address people see. DMARC closes that gap by requiring that SPF or DKIM passes for the From domain. Check your DMARC record next.

More free tools

All free tools