← All tools

SPF Record Checker

The whole SPF job in one place: read any domain’s record the way a receiving server does, build a new one from the services that send for you, and flatten it when it goes over the limit of 10 DNS lookups.

SPF Toolkit

How to read an SPF check, and what to fix when it fails

01What the checker looks at

The tool reads the TXT records on the domain you enter, finds the one that starts with v=spf1 and walks through it the way a receiving mail server does: every include, redirect, a and mx term is followed, and the DNS lookups they cost are counted. You see the record, the include tree, the total lookup count and a list of problems with a suggested fix for each.

It reads DNS only. It cannot see which server actually sent a given message, so it cannot tell you that a particular email passed or failed. For that, paste the message headers into the Email Header Analyzer.

02What the results mean

  • No SPF record. Nothing is published on that exact domain. Receivers treat the result as “none”, and Gmail, Yahoo and Outlook.com expect SPF or DKIM from every sender.
  • More than one SPF record. Only one is allowed. Two or more produce a permanent error (permerror) and SPF fails for all your mail.
  • Over 10 lookups. The limit is 10 DNS-querying terms per evaluation, counting everything inside included records. Past it the result is a permanent error.
  • Ends in +all or ?all. +all authorises every server on the internet. ?all says nothing. Use ~all or -all.
  • Uses ptr. The mechanism is discouraged in the standard because it is slow and unreliable. Replace it with ip4, ip6 or an include.

03How to fix the common failures

Over the limit: remove services you no longer send from, move bulk or marketing senders to a subdomain with its own SPF record, or flatten the record with the SPF Flattening Tool. Two records: merge them into one v=spf1 record, with all the includes together and a single all at the end. Missing record: build one with the SPF Record Generator.

After every change, check again. DNS caches mean the old record can be served for as long as its TTL, so a fix may take from minutes to a few hours to show everywhere.

04A passing record is not the whole job

SPF authorises servers for the domain in the envelope sender (the Return-Path). DMARC needs that domain to match the visible From address, so a record can be valid and still not help your DMARC result when a sending platform uses its own return-path domain. Set a custom return path in the platform, and pair SPF with DKIM so one of them still aligns when the other breaks.

Frequently asked questions

What is an SPF record check?

It looks up the SPF TXT record of a domain, validates its syntax and counts the DNS lookups it needs, the same limit that receiving mail servers enforce. It tells you whether the record is valid and what to fix if it is not.

Why does my SPF record say too many DNS lookups?

SPF allows at most 10 DNS-querying terms. Each include, a, mx, ptr, exists and redirect counts, and so does everything inside an included provider record. Several email services can exceed 10 together.

Can SPF pass and the email still go to spam?

Yes. SPF is one signal among many. Spam placement also depends on DKIM, DMARC alignment, domain and IP reputation, content and how recipients react to your mail.

How do I check the SPF record of a subdomain?

Enter the subdomain itself, for example mail.example.com. SPF is not inherited: a record on the root domain does not cover subdomains that send mail.

How often should I recheck SPF?

Every time you add or remove a sending service, and every few months otherwise. Providers change their own records, and a record that was under the limit can drift over it.

SPF is one of the records that decide inbox placement. We audit the whole setup, restructure the sending services so SPF stays valid, and fix what’s wrong.

How we help: Consulting · Private infrastructure · Managed mailboxes · Monthly support