Skip to content
Sign inStart monitoring

Developer Utility · SPF-GEN

SPF Generator Workbench

Build an SPF record

Zero TrackingInstant Execution100% Ad-FreeStandards Compliant
Loading tool...
Workflow & Diagnostics

How SPF Generator works

SPF lists the servers allowed to send mail for your domain. This generator builds the record and warns you about common mistakes.

1

Choose the providers you send from.

2

Copy the generated TXT record.

3

Publish it once at the root of your domain.

Troubleshooting & Remediation

How to Read & Fix Results

How to read the result

  • ProblemMore than one SPF record, or an SPF record over the limit of 10 DNS lookups. Both cause SPF to fail.
  • Warning~all (soft fail) left in place after you have confirmed all senders.
  • PassOne SPF record, under 10 lookups, listing every service that sends as your domain, ending in -all or ~all.

How to fix issues

  • List every service that sends mail as your domain (mail provider, newsletter tool, invoicing, CRM).
  • Build one record with an include: for each, using the exact value each provider documents.
  • Publish it as a single TXT record at the bare domain.
  • Re-check. If you pass 10 lookups, remove unused includes or flatten.

Common mistakes to avoid

  • Creating a second SPF TXT record instead of editing the first.
  • Forgetting a sender, so its mail fails.
  • Ending with +all, which allows everyone.

Example SPF Record Format

RFC Syntax
Reference ExampleRFC 1035 / BIND
example.com.  TXT  "v=spf1 include:_spf.google.com include:mailer.example.net ~all"

This generator builds the text in your browser. It does not query DNS, so run the DMARC or deliverability check after publishing.

Next checks:Flatten a long SPFGenerate DKIMCheck DMARC

Specifications & Scope

About SPF Generator

01 / What it does
SPF lists the servers allowed to send mail for your domain. This generator builds the record and warns you about common mistakes.
02 / How to use
1. Choose the providers you send from. 2. Copy the generated TXT record. 3. Publish it once at the root of your domain.
03 / Good to know
A domain may have only one SPF record. SPF allows 10 DNS lookups in total, so too many includes will fail.

Got Questions?

Frequently Asked Questions

No. Merge them into one.
Technical Reference & Standards

Tool Details & Usage Guide

RFC specifications, input expectations, outputs, and edge limitations.

Free SPF Record Generator Guide

Sender Policy Framework (SPF, RFC 7208) lists every IP address and mail provider authorized to send email from your domain. Without a valid single v=spf1 record at your root domain, mailbox providers mark transactional and cold messages as spam or bounce them with 550 5.7.1.

Step-by-Step: Publishing Your Generated SPF Record

  1. Include every active sender: Select Google Workspace (_spf.google.com), Microsoft 365 (spf.protection.outlook.com), or custom IPv4/IPv6 CIDR blocks.
  2. Keep recursive DNS lookups <= 10: Exceeding 10 lookups breaks evaluation with an immediate PermError. Verify after publishing with our SPF 10-Lookup Checker.
  3. Add cleanly in your DNS panel:
    • Cloudflare / GoDaddy: Create or edit the single TXT record at Name / Host = @.
    • cPanel Zone Editor: Edit or add the single TXT record at Zone Name = yourdomain.com..
    • AWS Route 53: Leave Record Name blank (zone apex) and quote the "v=spf1 ... -all" string.

Common SPF Mistakes & Fixes

  • Publishing two SPF records: Never create a second v=spf1 record alongside an old one. Edit the existing TXT entry and combine includes into one string.
  • Using +all wildcard pass: +all tells receiving servers every IP on the internet is authorized. Always finish with ~all (Softfail) or -all (Hardfail).

Next step: Verify active DKIM Keys, publish a DMARC Policy, and check Email Health.


Frequently Asked Questions

  • Should I pick ~all or -all? Start with ~all while onboarding new mailing tools so legitimate traffic isn’t dropped if an IP changes, then switch to -all once DMARC alignment passes 100%.
  • What if I exceed 10 lookups? Prune retired vendors or use our SPF Flattener to compress nested includes into direct IP CIDRs.