Skip to content
deliverly.ai

Email authentication

SPF Record Checker

Look up a domain's SPF record, walk every include and count DNS lookups against the limit of 10.

Need to create one? Open the SPF generator

What an SPF record does

SPF (Sender Policy Framework) is a TXT record at your domain that lists the servers allowed to send mail using your domain in the envelope sender. A receiving server looks the record up, compares the connecting IP address against it, and gets a result: pass, fail, soft fail or neutral.

A record looks like v=spf1 include:_spf.google.com ip4:203.0.113.10 ~all. Terms are read left to right and the first match wins. The final all term says what to do with everything else: -all rejects it, ~all marks it as suspicious, and +all allows anyone, which defeats the record.

The 10-lookup limit

RFC 7208 lets a receiver make at most 10 DNS lookups while evaluating one SPF record. Every include, a, mx, exists and redirect costs one, and so does each of those inside an included record. Go over 10 and the result is a permanent error, which most receivers treat as a fail. This is the most common way a working SPF record breaks: a vendor adds an include to their own record and yours goes from 10 to 11 without you changing anything.

This checker walks the full include tree and shows the cost of every branch, so you can see which service to drop or move to a subdomain.

Questions

Should I use ~all or -all?

With DMARC in place, ~all is the usual choice: DMARC decides what happens to failing mail, and ~all avoids rare cases where receivers reject on SPF alone before checking DKIM. Use -all for domains that never send mail.

Can I have two SPF records?

No. A domain must have exactly one TXT record starting with v=spf1. Two records cause a permanent error. Merge them into one record with a single all term.

What is a void lookup?

A lookup that returns no records, for example an include pointing at a name that no longer exists. More than two void lookups is a permanent error.

Does SPF alone stop spoofing?

No. SPF checks the hidden envelope sender, not the From address people see. You need DMARC to tie the result to the visible From domain.