SPF Record Generator
The SPF Record Generator builds a Sender Policy Framework TXT value from your mail providers, server IP addresses and chosen fail policy, ready to paste into DNS.
Create an SPF record
Optional: the domain the record is for. It sets the host name shown under the record.
The SPF domain your other email services give you, separated by commas or spaces.
IPv4 or IPv6, a single address or a range such as 203.0.113.0/24.
SPF record
@
~all
Built to RFC 7208: one record per domain, the all term last, and at most 10 DNS lookups (include, a, mx, ptr, exists, redirect) counted through every include. Once it's published, check the full count with the SPF Lookup Count Checker.
What Is an SPF Record?
An SPF record is a DNS TXT entry listing the servers allowed to send email for your domain. Receivers treat unlisted senders according to the qualifier at the end.
Every record starts with v=spf1 and is published as a TXT record on the domain root, usually host @.
How to Create an SPF Record
Fill in the form from top to bottom:
1. Enter the domain: Type it in the Enter domain (optional) field for reference. It does not change the record.
2. Pick your providers: Tick Google, Microsoft 365 or Zoho for each service that sends your mail.
3. Add server IPs: Type an IPv4 address or range, such as 203.0.113.0/24, and click Add IP. Click X to remove one.
4. Choose the policy: Select Soft Fail (~all), Hard Fail (-all) or Neutral (?all).
5. Build and copy: Click Generate SPF, then Copy.
SPF Record Generator Example
Input:
Providers: Google
IP: 203.0.113.25
Policy: Soft Fail (~all)
Output: v=spf1 include:_spf.google.com ip4:203.0.113.25 ~all
Google Workspace and 203.0.113.25 pass; other senders soft fail and are usually accepted but flagged.
include: Authorizes the senders listed in another domain's SPF record.
ip4: Authorizes a specific IPv4 address or CIDR range.
~all: Soft fail for all other senders.
-all: Hard fail for all other senders.
?all: Returns no verdict for other senders.
Once SPF is live, add a policy and reporting with the DMARC Record Generator.