Skip to content
thenetworktools
Sign in

Tools / SPF Generator

SPF Generator

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

  1. 1List every service that sends mail as your domain (mail provider, newsletter tool, invoicing, CRM).
  2. 2Build one record with an include: for each, using the exact value each provider documents.
  3. 3Publish it as a single TXT record at the bare domain.
  4. 4Re-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.

Overview

Generates an SPF TXT record based on user-provided mail sources.

Inputs

  • Target: Domain and authorized sources (IPs, third-parties)

Output Interpretation

  • Results: Outputs the SPF record string.

Examples & Limitations

  • Example Use Case: Authorizing Google Workspace or Microsoft 365 to send emails.
  • Limitation: Does not automatically publish to DNS.