Sign inStart for $1

SPF record generator

Pick the services that send mail for your domain, add any IP addresses, and get the TXT record to publish, with the DNS lookups it costs against the limit of 10.
Services that send mail for this domain
One per line or separated by commas.
IPv4 and IPv6, with an optional /prefix.

Enter your domain to build the record.

Where each include comes from
Senders, includes and lookup counts
ServiceIncludeLookupsSource (read 2026-10-18)
Google Workspace_spf.google.com1Google Workspace Admin Help: Set up SPF
Microsoft 365spf.protection.outlook.com1Microsoft Learn: Set up SPF to help prevent spoofing
SendGridsendgrid.net2Twilio SendGrid: How to set up domain authentication
Mailchimpservers.mcsv.net1Google Workspace Admin Help: Set up SPF (sender table)
Amazon SESamazonses.com1Amazon SES Developer Guide: Using a custom MAIL FROM domain
Zoho Mailzohomail.com2Zoho Mail Help: SPF configuration
Mailgunmailgun.org5Mailgun Documentation: Verify your domain

Lookup counts are the include plus every include inside the record it points to, measured on 2026-10-18. Providers can change them. The limit of 10 is from RFC 7208: Sender Policy Framework, section 4.6.4, read 2026-10-18. Postmark is not listed because its own help page (read 2026-10-18) says an include at your root domain does nothing for it; it authenticates through a Return-Path CNAME.

Runs in your browser. Nothing you type is sent to us.

How it works

  1. Tick the services that send mail for your domain: Google Workspace, Microsoft 365, SendGrid, Mailchimp, Amazon SES, Zoho Mail or Mailgun. Each adds one include: term, using the value the provider's own help page names (sources are listed under the tool, read 2026-10-18).
  2. Add other include domains, IPv4 and IPv6 addresses or CIDR ranges, which are checked as you type, and switch on a (your domain's own address) or mx (your MX hosts) if those servers send mail.
  3. The record starts with v=spf1 and ends with ~all (soft fail, recommended while you test), -all (hard fail) or ?all (neutral, no protection).
  4. The lookup count adds a fixed number for each service, one for mx and one for a. The numbers come from walking each provider's published records on 2026-10-18 and can change. Above 10, receivers return a permanent error (RFC 7208 section 4.6.4), so the tool warns.
  5. Publish exactly one SPF record, as a TXT record at the host @. A record over 255 characters is also shown in its split, quoted form.

Limits

  • Everything runs in your browser. The text you type is never sent anywhere.
  • The lookup count is a lower bound when you add an include by hand, because we cannot see inside it. The domain checker counts the true total across nested includes.
  • Providers change their sending records. A count or include that was right when we read it can go stale.
  • Postmark is not in the list: its own help page says an SPF include does nothing for it and it authenticates through a Return-Path CNAME instead.
  • No account is needed and no mail is sent.