Bouncewise

Bouncewise › Free tools › SPF record checker

Free tool

SPF record checker

Updated · 2 min read

Enter a domain to see its SPF record, every include it pulls in, how many of the 10 allowed DNS lookups it uses, and what its all mechanism does. A domain needs exactly one TXT record starting with v=spf1; more than 10 lookups or two SPF records make receivers return permerror, and SPF fails.

What this checker looks at

  • The record itself. Exactly one TXT record on the domain that starts with v=spf1. Two of them is a permanent error, not a merge.
  • DNS lookups. Every include, a, mx, ptr, exists and redirect costs a lookup, including the ones inside your includes. RFC 7208 caps the total at 10.
  • Void lookups. Names that return no answer. More than 2 is also a permanent error.
  • The ending. -all fails unlisted servers, ~all softfails them, ?all is neutral and +all lets anyone pass.
  • Who you've authorised. Known includes such as Postmark (spf.mtasv.net), Mailgun (mailgun.org), SendGrid (sendgrid.net) and Amazon SES (amazonses.com, used by Resend).

Fixing "too many DNS lookups"

Each provider's include can hide several lookups of its own, so a record with five includes can easily pass 10. In order of preference:

  1. Remove senders you no longer use. Old marketing tools are the usual culprits.
  2. Send from subdomains. Give each provider its own subdomain (for example mail.example.com for transactional mail), each with its own SPF record and its own 10 lookups.
  3. Rely on the Return-Path. Transactional providers check SPF against the envelope sender (Return-Path), which is often their own domain or a custom bounce subdomain, not your root domain. If a provider uses a custom Return-Path, it may not need to be in your root record at all; check its docs.
  4. Flatten carefully. Replacing includes with IP addresses cuts lookups but breaks silently when the provider changes its IPs. Avoid it unless you automate it.

Example records

SituationRecord
Google Workspace mail plus Postmarkv=spf1 include:_spf.google.com include:spf.mtasv.net ~all
A subdomain that only sends through Mailgunv=spf1 include:mailgun.org ~all
A domain that never sends emailv=spf1 -all

Use the exact include your provider shows in its dashboard; the ones above are common examples, not a substitute for your provider's instructions.

SPF passing isn't the whole story

For DMARC, SPF only counts when the domain it checked (the Return-Path) matches the From domain. Many transactional emails pass SPF on the provider's bounce domain and still fail DMARC alignment. A custom Return-Path or DKIM signing on your own domain fixes that. See why DMARC fails and custom Return-Path domains.

Privacy

The checker runs in your browser. DNS questions go straight from your browser to Cloudflare's public DNS-over-HTTPS resolver (Google's if Cloudflare doesn't answer). bouncewise.app doesn't see or store the domains you check.

Questions

What does SPF permerror mean?

The record can't be evaluated: usually more than 10 DNS lookups, more than 2 void lookups, two SPF records on one domain, or a syntax error. Receivers treat permerror as an SPF failure.

Should I use -all or ~all?

~all is the common choice: unlisted servers softfail and DMARC decides what happens. Use -all once you're sure every legitimate sender is listed, or on domains that never send mail.

How long until a new SPF record shows up?

As soon as your DNS host publishes it and any cached copy expires (the old record's TTL, often 5 minutes to an hour). This checker asks a public resolver, so it may show the cached record for up to that long.

Sources