Keep your bounce rate under 3%. Verify your email list with catch-all email verifier Giggal.ai

Free SPF record builder SPF record generator: create a valid SPF record in a minute.

Tick the services that send your email and copy the record. The SPF record generator checks it live, counting every DNS lookup against the limit of 10, warns if your mail provider is missing, and writes records for many domains at once.

With a domain, the live check also confirms your mail provider (from your MX records) is authorised.

Start from a preset

Services that send email as your domain

Cold email tools such as Instantly, Smartlead and lemlist send through your Google Workspace or Microsoft 365 inboxes, so they need no include of their own.

Other senders: includes, IP addresses, a and mx

Copy the include from the service’s DNS setup page; some, like HubSpot, give each account its own.

What receivers do with mail from any other server

Your SPF record

TypeHost / NameTTL
TXT@ (or blank, or your domain)3600 or Auto

Value (TXT record content)

v=spf1 include:_spf.google.com ~all

A domain may have only one SPF record. If it already has one, replace its value instead of adding a second.

Published it? Check it with the SPF checker → Then add a DMARC record and check DKIM.

Skip the DNS work. PureMail publishes SPF, DKIM, DMARC and MX on every cold email domain and sets up Google Workspace or Microsoft 365 inboxes on them, in about 4 hours.

Get inboxes

Free, no sign-up. The record is built in your browser; the live check makes public DNS lookups. We store nothing. Updated .

What this SPF record generator does

An SPF record is a TXT record that lists the servers allowed to send email for your domain. Receivers check it on every message: if the sending server is not listed, SPF fails, and DMARC may send the email to spam or reject it. A typo, a missing sender or one include too many is enough. This SPF record generator is built to avoid all three:

  • Sixteen common senders with the includes their own documentation gives, from Google Workspace and Microsoft 365 to SendGrid, Mailgun, Salesforce and Zendesk, plus custom includes and IP addresses.
  • A live DNS lookup count. The SPF generator follows every include, including the includes inside them, and counts lookups as you build, with the cost of each include shown.
  • Checks while you build: syntax, the 10-lookup limit, record length, the all policy, and, when you enter your domain, whether your mail provider (found from your MX records) is authorised.
  • Load current record. Turn the record you already publish into a form, add or remove a sender, and replace it. Terms the form has no field for are kept as written.
  • Bulk mode writes the record for every sending domain at once, as a table or a CSV file.

Create SPF record: step by step

This is how to create SPF record text with the SPF record generator, whether you start from scratch or from the record you already have:

  1. List who sends as your domain: your mailbox provider, plus any newsletter tool, CRM, help desk, billing system or website server that sends email from an address on the domain.
  2. Enter your domain in the SPF record generator and press Load current record if one exists.
  3. Pick a preset or tick your senders. Add other includes or IP addresses under Other senders.
  4. Choose the policy: ~all for most domains, -all if you prefer strict.
  5. Check the lookup count stays at 10 or below and read the checks.
  6. Copy the record and add it at your DNS host as a TXT record on the root (host @), replacing any existing SPF record.
  7. Verify it with the SPF checker once DNS has updated.

Which services belong in your SPF record?

Only services that send email from your domain’s servers, or with your domain in the bounce address, need an entry. The includes below are the ones each service documents, with the number of DNS lookups each one cost when we measured them on 23 November 2026:

SenderSPF includeDNS lookups
Google Workspaceinclude:_spf.google.com1
Microsoft 365 (Office 365)include:spf.protection.outlook.com1
Zoho Mailinclude:zohomail.com2
Fastmailinclude:spf.messagingengine.com1
Proton Mailinclude:_spf.protonmail.ch2
SendGridinclude:sendgrid.net2
Mailguninclude:mailgun.org5
Amazon SES (custom MAIL FROM only)include:amazonses.com1
Postmarkinclude:spf.mtasv.net1
Mailchimp Transactional (Mandrill)include:spf.mandrillapp.com1
Brevoinclude:spf.brevo.com1
Mailjetinclude:spf.mailjet.com1
SparkPostinclude:sparkpostmail.com2
Salesforceinclude:_spf.salesforce.com2
Zendeskinclude:mail.zendesk.com1
Freshdeskinclude:email.freshdesk.com7

Three groups need no include at all. Cold email sequencers such as Instantly, Smartlead and lemlist send through your own Google Workspace or Microsoft 365 inboxes, so the provider’s include already covers them. Services that use their own bounce domain, such as Mailchimp’s marketing emails and Postmark by default, pass SPF on their domain and rely on DKIM for yours. And forwarding is the receiving side’s problem, not yours. Some services, HubSpot among them, give each account its own include; copy it from the service’s DNS settings into Other includes. Tick any service in the table in the SPF record generator and it adds the include for you.

~all or -all: choosing the SPF policy

The last term of the record says what receivers should do with mail from any server not listed:

EndingNameMeaningWhen to use it
~allSoft failAccept, but treat as suspiciousMost domains, with DMARC. Google’s default; the SPF generator’s default.
-allFailReject or mark as failedMicrosoft’s recommendation; domains that send no email
?allNeutralNo opinionOnly briefly while testing
+allPassAny server may sendNever: it lets anyone send as your domain

Once DMARC is published, the difference between ~all and -all is small: DMARC applies your policy to mail that fails both SPF and DKIM alignment. Create a DMARC record with the DMARC record generator.

Staying under the 10 DNS lookup limit

Every include, a, mx, exists and redirect makes receivers look something up in DNS, and so does every one of those inside the records you include. RFC 7208 caps the total at 10. Go over and SPF returns PermError, which counts as a fail for DMARC, for all your mail, not just the extra sender.

That is why this SPF record builder counts lookups through nested includes rather than counting the includes you typed. Two senders can look harmless and cost twelve. Ways to stay under the limit:

  • Remove senders you no longer use. Old newsletter tools and trial accounts are the usual culprits; the SPF record generator’s per-include count shows which ones cost most.
  • Drop a and mx unless those servers really send mail; with Google or Microsoft they rarely do.
  • Move a service to a subdomain. Send marketing email from news.yourdomain.com with its own SPF record, and the main record stays small.
  • Use IP addresses for servers you control; ip4 and ip6 cost no lookups.
  • Flatten with care. Replacing includes with their current IP addresses saves lookups, but breaks silently when the provider changes IPs. Prefer the steps above.

How to publish the SPF record at your DNS host

Add a TXT record on the root of the domain. Most DNS hosts call the root @; some want the field left blank or the full domain name. The value is the record from the SPF record generator, starting with v=spf1. Amazon Route 53 wants the value in double quotes. Use the TXT type: the old SPF record type was retired in 2014.

Most important: one SPF record per domain. If the domain already has a TXT record starting with v=spf1, edit that record. Adding a second one makes every SPF check fail with PermError, a mistake the SPF checker catches and fixes with a merged record.

SPF record examples from the generator

Each SPF record example below is what the SPF record creator produces for a common setup. The SPF checker page explains the full syntax and has more examples, including the SPF record for Google Workspace and the SPF record for Office 365 in detail.

SetupSPF recordLookups
Google Workspace (cold email domain)v=spf1 include:_spf.google.com ~all1
Microsoft 365v=spf1 include:spf.protection.outlook.com -all1
Google Workspace plus SendGridv=spf1 include:_spf.google.com include:sendgrid.net ~all3
Microsoft 365 plus your own serverv=spf1 ip4:203.0.113.10 include:spf.protection.outlook.com -all1
Domain that sends no emailv=spf1 -all0

Copy any SPF record example into your DNS as it is, or open the matching preset in the SPF record creator above to add your own senders. Every SPF record example here stays well under the lookup limit.

SPF records for many cold email domains

A cold email setup often has ten or fifty sending domains, all on the same provider, so they all need the same SPF record. To create SPF record entries for all of them at once, the Many domains at once tab of the SPF record generator takes your list, asks whether the inboxes are on Google Workspace or Microsoft 365, and writes one row per domain, ready to copy or download as a CSV for your DNS host’s bulk import. Keep the sending domains simple: one provider, one include, nothing else. That leaves room to spare under the lookup limit and nothing to break.

Common SPF mistakes

  • Two SPF records on one domain, usually after adding a new provider’s record instead of editing the old one.
  • An include for a sequencer that sends through your Google or Microsoft inboxes. It wastes lookups and authorises servers that never send your mail.
  • Forgetting a sender, such as the help desk or billing tool, which then fails SPF and DMARC.
  • Going over 10 lookups by adding senders one at a time without counting.
  • Using ptr, which is slow, unreliable and discouraged by the standard.
  • Ending in +all, which authorises every server on the internet.
  • Typos such as include:_spf.gooogle.com or a missing space, which the live check in the SPF generator catches.

SPF is one of four records

SPF says which servers may send. DKIM signs each email, DMARC tells receivers what to do when checks fail, and MX receives the replies. Gmail, Yahoo and Outlook expect SPF, DKIM and DMARC from bulk senders, and without MX no replies arrive. After you create SPF record entries for your domains, check them all at once with the free email deliverability test, then look up your keys with the DKIM checker.

Or let PureMail do it: we publish SPF, DKIM, DMARC and MX on every domain and set up Google Workspace or Microsoft 365 inboxes on them, connected to your sequencer, in about four hours, from $2.90 an inbox.

FAQ

SPF generator: questions, answered.

Short answers about the check above.

01

What is an SPF record generator?

An SPF record generator builds a valid SPF record from the services that send email for your domain. You tick your providers, add any IP addresses, choose ~all or -all and copy the record into your DNS. This SPF generator also counts the DNS lookups live, so the record never passes the limit of 10.

02

How do I create an SPF record?

List every service that sends email as your domain, tick them in the SPF record generator above, choose ~all, and copy the result. Add it at your DNS host as a TXT record on the root of the domain (host @). If an SPF record already exists, edit it instead of adding a second.

03

What does a good SPF record look like?

Short, with one include per sending service and ~all or -all at the end, such as v=spf1 include:_spf.google.com ~all. It stays under 10 DNS lookups, has no ptr, never ends in +all, and is the only SPF record on the domain.

04

What is the SPF record for Google Workspace?

v=spf1 include:_spf.google.com ~all, as a TXT record on the root of the domain. Add other senders’ includes before ~all if you have them. The SPF checker page has the full Google Workspace setup.

05

What is the SPF record for Office 365?

v=spf1 include:spf.protection.outlook.com -all for Microsoft 365 (Office 365). Microsoft recommends -all; ~all also works when DMARC is set up. Add other senders’ includes before the all term.

06

Do Instantly, Smartlead or lemlist need an SPF include?

No. Cold email sequencers send through the Google Workspace or Microsoft 365 inboxes you connect, so your Google or Microsoft include already covers them. You only need an extra include for a tool that sends from its own servers, such as SendGrid or Mailgun.

07

Should my SPF record end in ~all or -all?

With DMARC in place, either works; ~all (soft fail) is the common choice and Google’s default, while Microsoft recommends -all (fail). DMARC decides what happens to failing mail either way. Never use +all, which lets any server send as your domain.

08

What is the SPF 10 DNS lookup limit?

An SPF check may make at most 10 DNS lookups, counting every include, a, mx, exists and redirect, including those inside other includes. Past 10, SPF returns PermError and fails. This SPF record builder shows the running total as you add senders.

09

Can a domain have two SPF records?

No. With two or more SPF records, every SPF check fails with PermError. Merge them into one record with all the includes, which is what the generator’s Load current record button helps you do.

10

Where do I add the SPF record?

At the company that runs your DNS, often your registrar or Cloudflare. Add a TXT record with the host @ (some hosts want it blank or the domain itself) and the SPF record as the value.

11

Do subdomains need their own SPF record?

Only if they send email. SPF is not inherited: mail from news.yourdomain.com is checked against the SPF record on news.yourdomain.com, not on yourdomain.com. Subdomains that never send can have v=spf1 -all.

12

How long does a new SPF record take to work?

Usually minutes to an hour, depending on your DNS host and the TTL of the old record; allow up to 48 hours. Run the SPF checker once it has updated.

13

How many includes can an SPF record have?

As many as fit within 10 DNS lookups in total. Google Workspace and Microsoft 365 cost one lookup each, but some services cost more: in our test, Mailgun cost 5 and Freshdesk 7. The SPF generator shows the cost of each include.

14

Is this SPF generator free?

Yes. The SPF generator is free with no sign-up and no limits, including bulk mode. The record is built in your browser; the live check uses public DNS lookups and stores nothing.

Still have a question? support@puremail.ai · contact us

Your next reply is one order away.

Google Workspace and Microsoft 365 inboxes from $2.90 a month, set up and connected to your sequencer today.