SPF Record Generator
Pick the services that send email for your domain and copy a ready-to-publish SPF record.
Quick answer: The SPF record generator builds a v=spf1 TXT record from the senders you pick, such as Google Workspace, Microsoft 365 or SendGrid, plus extra IPs and includes. Publish it as one TXT record at the root of your domain.
How the SPF generator works
- Tick the services that send email for your domain, such as Google Workspace, Microsoft 365, SendGrid or Mailchimp.
- Optionally allow your domain's own A record or MX servers, and add extra IP addresses and other include domains.
- Choose what should happen to mail from other servers (
~allto start,-allfor strict). - Copy the generated TXT record and publish it at your DNS host.
How to publish the record
In your DNS provider, add a TXT record with host @ (the bare domain) and the generated value. A domain must have only one SPF record, so replace any existing one rather than adding a second. If your DNS panel asks for quotes, it usually adds them for you. After publishing, wait a few minutes and run the SPF Record Checker to confirm it works and stays under 10 lookups.
Choosing your senders
- Google Workspace. include:_spf.google.com
- Microsoft 365. include:spf.protection.outlook.com
- Other platforms. Cold email, newsletter and CRM tools give you their own include in their setup guide. Add it with the "other includes" box.
- Your own server. Add its IP as ip4: or ip6:, or tick the A or MX option if it is the host in your DNS.
- Services you no longer use. Leave them out. Stale entries waste lookups and widen who can send as you.
Choosing -all, ~all or ?all
- ~all (soft fail). Recommended to start. Other mail is accepted but marked.
- -all (hard fail). Strictest. Use when you are sure every sender is listed.
- ?all (neutral). Gives no protection. Only for short tests.
Rules the generator follows
- One record per domain, starting with v=spf1.
- The all mechanism always comes last.
- Invalid entries are ignored and listed, so a typo cannot break the record.
- The lookup count of your choices is estimated so you stay under the limit of 10.
Ready-made SPF record examples
- Google Workspace only.
v=spf1 include:_spf.google.com ~all - Microsoft 365 only.
v=spf1 include:spf.protection.outlook.com -all - Google Workspace plus SendGrid.
v=spf1 include:_spf.google.com include:sendgrid.net ~all - Microsoft 365 plus Mailchimp.
v=spf1 include:spf.protection.outlook.com include:servers.mcsv.net -all - Your own server and Google.
v=spf1 ip4:203.0.113.10 include:_spf.google.com ~all - Domain that never sends mail.
v=spf1 -all
Where to add it
- GoDaddy: My Products, then DNS next to your domain, then Add New Record. Choose type TXT, set Name to @ (or the name shown below), paste the value and save.
- Namecheap: Domain List, Manage, Advanced DNS, Add New Record. Choose TXT Record, set Host to @ (or the name shown below) and paste the value.
- Cloudflare: select the domain, open DNS, Records, Add record. Choose TXT, set Name to @ (or the name shown below) and paste the value. TXT records are never proxied.
- Other DNS hosts use almost the same fields: type, host or name, value and TTL. Menu names change over time, so look for "DNS", "DNS records" or "Advanced DNS".
Last reviewed November 20, 2026 by the LeadNurturix cold email team.
SPF record generator FAQ
What is an SPF record generator?
A tool that builds the text of an SPF record from your choices, so you do not have to write the syntax by hand.
Where do I put the SPF record I generate?
In your DNS as a TXT record at the root of your domain (host @). If you send from a subdomain, publish a record on that subdomain.
Can I add more than one include?
Yes. Each include adds at least one DNS lookup, and the services inside them add more, so keep the total under 10. Check the result with the SPF Record Checker.
Which services should I include?
Only those that actually send email using your domain in the envelope sender: your mailbox provider, your cold email or newsletter platform and any transactional email service.
Do I need an SPF record for cold email domains?
Yes. Each sending domain needs SPF, DKIM and DMARC. Without them most large mailbox providers filter or reject your mail.
What if I already have an SPF record?
Do not add a second one. Edit the existing record and merge in the new senders, then replace the old value.
Should I start with ~all or -all?
Start with ~all, confirm everything passes in your DMARC reports and then consider -all. With a DMARC policy in place either works well.
Can I include IPv6 addresses?
Yes. Add them to the IP box. They are published as ip6: entries and cost no DNS lookups.
How do I know if the record works?
Paste your domain into the SPF Record Checker, or send a test email to a Gmail address and view the original message to see spf=pass.
Does the generator send my data anywhere?
No. The record is built in your browser. Nothing you enter is stored.
What is the SPF record for Mailchimp?
Add include:servers.mcsv.net to your SPF record, for example v=spf1 include:servers.mcsv.net ~all, together with your other senders.
What is the Brevo SPF include value?
include:spf.brevo.com. Add it to your single SPF record.
What is the Resend SPF record?
Resend shows the exact records in its domain setup page. Its SPF and MX records are normally on a send subdomain, so you do not merge them with your root domain record. Copy the values from the Resend dashboard.
What is the SPF record for Amazon SES?
Add include:amazonses.com to your SPF record. If you use a custom MAIL FROM domain, publish the SPF record on that subdomain.
How do I add an SPF record in Cloudflare?
DNS, then Records, then Add record. Type TXT, name @, content is your v=spf1 record. Save it and check it with the SPF Record Checker.
How do I add an SPF record in GoDaddy or Namecheap?
Open the DNS settings of the domain, add a TXT record with host @ and the generated value. Replace any existing SPF record instead of adding a second.
How do I add an IP address to SPF?
Type it in the extra IP addresses box. The generator writes it as ip4: or ip6: and it costs no DNS lookups.
Need the fixes done for you?
LeadNurturix is a cold email agency. We set up sending domains and mailboxes with SPF, DKIM and DMARC done right, build targeted B2B lead lists, write the sequences and run the campaigns. Start with a free deliverability audit and we will tell you exactly what to change.
More deliverability tools
Every free deliverability tool we offer
SPF, DKIM, DMARC, BIMI, MTA-STS and TLS-RPT checks, blocklist and DNS lookups, DNSSEC records, server tests and generators. All free, no signup.
Email checks
Email deliverability test Domain scanner SPF checker DKIM record checker DMARC checker BIMI lookup MTA-STS lookup TLS-RPT lookup Blacklist check Test email server Email copy spam checker
Create and fix
SPF record generator DKIM record generator DMARC record generator Anti-spam email fixer Cold email calculator
DNS lookups
DNS lookup DNS check DNS trace MX lookup TXT lookup CNAME lookup AAAA lookup SOA lookup SRV lookup Reverse DNS lookup
DNSSEC and special records
DS lookup DNSKEY lookup RRSIG lookup NSEC lookup NSEC3PARAM lookup CERT lookup IPSECKEY lookup LOC lookup