SPF record checker and generator

Trace every include and redirect, count DNS lookups against the limit of 10, and see exactly which servers your SPF record authorises, or generate a new record.

Runs in your browser using public DNS-over-HTTPS (Cloudflare, with Google as a fallback). Nothing you enter is stored.

What this checks

Sender Policy Framework (SPF, RFC 7208) lists the servers allowed to send mail for your domain. This tool expands your record the way a receiving mail server does:

  • DNS lookup limit. Every include, a, mx, ptr, exists and redirect costs one lookup, including those inside the records you include. Past 10, receivers return a permanent error and SPF fails for all of your mail.
  • Void lookups. Lookups that return nothing count against a separate limit of 2.
  • Syntax. One v=spf1 record per domain, valid mechanisms and IP ranges, no loops.
  • The ending. +all lets anyone send as you and ?all is neutral. ~all is what you want on a domain that sends email (see below). -all is right for a domain that never sends.

~all or -all?

The ending tells receivers what to do with mail from servers your record doesn’t list. -all (hard fail) sounds stricter, but some receivers act on it during the SMTP conversation and reject the message before they check DKIM or DMARC. RFC 7489 §10.1 warns about this. Forwarded and mailing-list mail often fails SPF but still passes DKIM, so a hard fail can lose mail that DMARC would have accepted.

~all (soft fail) avoids that: unlisted servers still fail SPF, but the message reaches DMARC, which decides using SPF and DKIM. M3AAWG recommends ~all for domains that publish DMARC, and enforcing with DMARC p=quarantine or p=reject instead.

There are two exceptions:

  • Domains that never send email should publish v=spf1 -all. There’s no legitimate mail to lose.
  • Frameworks that require hard fail. The Australian ISM (ISM-1183) requires -all, so follow it if it applies to you.

Building a record in the generator

The Generate tab asks what sends mail as your domain and writes the record for you:

  • Services that send as you become include terms. Each one is expanded live, so you can see how many lookups it costs before you publish. Some services send with their own bounce domain, which means an include on your domain does nothing. The generator tells you when that’s likely.
  • Your own servers become ip4 and ip6 terms. They go first because they cost no lookups.
  • Start from my current record loads your published record, so you can add or remove a sender and see exactly what changed.

Why the 10-lookup limit bites

Most organisations hit the limit gradually. Microsoft 365 and Google Workspace each cost a few lookups, then a CRM, a marketing platform, a helpdesk and a payroll system each add one more. When a vendor adds an include to their record, your count goes up without you changing anything.

Ways to get back under the limit:

  1. Remove includes for services you no longer use.
  2. Replace a and mx mechanisms with the ip4/ip6 ranges they resolve to, if those addresses are stable.
  3. Move a sender to a subdomain (for example news.example.com) with its own SPF record.
  4. Flatten the record. Poscha’s SPF record health feature does this automatically and re-expands it hourly.

SPF on its own isn’t enough

SPF checks the hidden envelope sender, not the From: address people see. It’s DMARC that ties SPF to the visible sender, and DMARC reports that show you whether real mail is passing. Check your DMARC record.

Turn the requirement into evidence

Poscha shows who sends as your domain, whether it's authenticated and whether it's encrypted in transit, without touching your mail flow.

Get Early Access