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,existsandredirectcosts 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=spf1record per domain, valid mechanisms and IP ranges, no loops. - The ending.
+alllets anyone send as you and?allis neutral.~allis what you want on a domain that sends email (see below).-allis 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
includeterms. 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
ip4andip6terms. 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:
- Remove includes for services you no longer use.
- Replace
aandmxmechanisms with theip4/ip6ranges they resolve to, if those addresses are stable. - Move a sender to a subdomain (for example
news.example.com) with its own SPF record. - 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.
More free tools
Domain Report
Every record for one domain at once, scored, with what to fix first.
Open tool →DMARC & TLS Report Analyzer
Summarise up to 100 DMARC and TLS reports, read in your browser.
Open tool →Email Header Analyzer
What one message's authentication, alignment and encryption really were.
Open tool →DMARC Check & Generate
Validate policy and reporting, or generate a record for RFC 7489 and RFC 9989.
Open tool →DKIM Checker
Look up a selector or scan common ones, and measure the key size.
Open tool →BIMI Check & Generate
Validate your record, logo and certificate, or generate a new BIMI record.
Open tool →MTA-STS Check & Generate
Validate the DNS record and policy file, or generate both.
Open tool →TLS-RPT Check & Generate
Validate your _smtp._tls record, or generate one.
Open tool →security.txt Check & Generate
Validate a published file against RFC 9116, or create one.
Open tool →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 AccessPrefer to talk? Call 0412 970 025