Free tool

SPF record checker

Validate a domain's SPF record, count its DNS lookups across every include against the limit of 10, and get the exact fix for each problem.

Last updated 2026-11-11 · Verified 2026-11-11 by the Sendly team

How a receiving server checks mail that claims to be from your domainFive steps from top to bottom. 1, connection: the sender finds the receiving server from MX records and the receiver can check the sending IP against blocklists. 2, the message carries a Return-Path, a DKIM signature and a From address. 3a, SPF checks the sending server against the Return-Path domain's record; 3b, DKIM verifies the signature with the key at the selector. 4, DMARC asks whether a domain that passed aligns with From, and its policy decides the rest. 5, an aligned pass is treated as your mail and can show a BIMI logo; without one, p=none delivers, p=quarantine sends to spam, p=reject refuses.1 · CONNECTIONA sender finds the receiving server from therecipient domain's MX records, and the receivercan check the sending IP against blocklists.2 · YOUR MESSAGEReturn-Path: bounce@mail.example.comDKIM-Signature: d=example.com; s=s1From: you@example.com3A · SPFIs the sending serverlisted in the record ofmail.example.com(the Return-Path)?3B · DKIMDoes the signatureverify with the key ats1._domainkeyunder example.com?4 · DMARCDoes a domain that passed SPF or DKIM matchthe From: domain? When neither does, the policy_dmarc.example.com decides what happens.5 · ALIGNED PASSTreated as your mail;a BIMI logo can showif the policy enforces.5 · NO ALIGNED PASSp=none deliveredp=quarantine to spamp=reject refused
The SPF checker reads step 3a: the record of the Return-Path domain, with every include it pulls in, counted the way the receiver counts them.

Run the same check from a script

This lookup answers over HTTP as well, with no account and no key, and CORS is open. OpenAPI description.

curl "https://sendly.now/api/tools/spf-checker?domain=example.com"

# Markdown instead of JSON:
curl -H "Accept: text/markdown" "https://sendly.now/api/tools/spf-checker?domain=example.com"

How receivers read SPF

When mail arrives, the receiving server reads the SPF record of the return-path domain and checks whether the connecting server is listed, following every include, a and mx term to do it. The record has to parse, stay within 10 DNS-querying terms and 2 empty answers, and end in an all that says what to do with everything else.

What this checker counts

  • Every include, a, mx, ptr, exists and redirect term, across the whole include tree, the way receivers count them.
  • Lookups that return nothing (void lookups), which fail SPF past 2.
  • The qualifier on all, and terms SPF does not define.
  • Loops, includes of domains without an SPF record, and domains publishing two records.

What the result means

Pass means the record parses, ends in an all, and spends at most 10 lookups and 2 void lookups across every include. Fail is a permanent error at the receiver: an eleventh lookup, two v=spf1 records, or a term SPF does not define, and under DMARC that counts as SPF failing for all of your mail. Could not check means DNS did not answer inside the budget, so run it again before changing anything. The usual fix for too many lookups is removing the include of a service you stopped using, then the one that nests deepest.

More DNS tools

For the rest of a domain's DNS (finding the DNS provider, following CNAME chains, comparing records before and after a change), see the DNS tools by DoDomain.

Questions people ask

What is the SPF 10 lookup limit?
Receivers evaluate at most 10 include, a, mx, ptr, exists and redirect terms across the whole SPF record, including the records it includes. One more is a permanent error, and DMARC treats that as an SPF failure for all of your mail.
Should my SPF record end in ~all or -all?
~all (soft fail) is the usual choice while you make sure every service that sends for you is listed; your DMARC policy then decides what happens to unlisted mail. -all (hard fail) is the stricter end state. ?all and +all protect nothing.
Can a domain have two SPF records?
No. With more than one record that starts with v=spf1, receivers return a permanent error and SPF fails. Merge them into one record with one all at the end.

A record result that looks wrong for your domain? Send the domain to support@sendly.now and we will go through the lookup with you. How each record is read is set out in the documentation.

Analytics cookies? Privacy