SPF record generator
Select the tools that send email as you. Copy one line. We count its DNS lookups as you build it.
SPF is the list of servers allowed to send email as your domain. Every tool you add needs to be on it, and the list has two hard rules most people find out about the day it breaks: one record per domain, and at most 10 DNS lookups.
This generator keeps you inside both, and can start from the record you already have.
What does an SPF record look like?
An SPF record is one TXT record on your domain that starts with v=spf1, lists the servers allowed to send as you, and ends by saying what to do with any other server.
- Name
- @
- Type
- TXT
- Value
- v=spf1 include:_spf.google.com include:sendgrid.net ~all
include: hands the question to another domain's list, which is how email tools publish their servers. ip4: and ip6: name your own servers directly.
Which include does my email tool need?
Each tool publishes one include for its servers. The common ones are below, each checked in live DNS on 22 Nov 2026.
| Tool | Include |
|---|---|
| Google Workspace | include:_spf.google.com |
| Microsoft 365 | include:spf.protection.outlook.com |
| MailRig | include:spf.mailrig.io |
| Zoho Mail | include:zohomail.com |
| SendGrid | include:sendgrid.net |
| Mailgun | include:mailgun.org |
| Amazon SES | include:amazonses.com |
| Brevo | include:spf.brevo.com |
| Postmark | include:spf.mtasv.net |
| Mailchimp Transactional | include:spf.mandrillapp.com |
Cold email sequencers that send through your Google or Microsoft inboxes need only the Google or Microsoft include. Your tool's setup page names its include if it has one.
What is the 10-lookup limit, and how do I stay under it?
A receiving server will look up at most 10 domains to read your SPF record. Every include, a, mx, exists and redirect costs one, and includes can hide more inside them. Past 10, SPF fails for every email.
- Remove includes for tools you no longer send from. This fixes most records.
- Send marketing or cold email from its own subdomain or domain, with its own short SPF record.
- Use ip4: for your own servers. IP addresses cost no lookups.
The generator counts the lookups of the line you are building, following every include the way a receiving server does.
Should I end with ~all or -all?
Either works once DMARC is in place. ~all marks other servers as suspicious; -all tells receivers they fail. Start with ~all while you are still adding tools.
Never end with +all or ?all. Both let any server on the internet send as you.
Can I have two SPF records?
No, a domain can have only one SPF record. With two, receivers count SPF as broken and both fail. Merge them into one line: press Start from my record and the generator merges them for you.
How do I add the SPF record to my DNS?
At the company that runs your DNS, edit the TXT record that starts with v=spf1 and replace its value with the new line. If there is none, add a TXT record with the name @.
- 1
Copy the value
Press Copy next to the value.
- 2
Find your current SPF record
In your DNS records, look for a TXT record whose value starts with v=spf1.
- 3
Replace it
Paste the new line as its value. Adding a second record instead breaks both.
- 4
Check it
Run the record checker on your domain. Most changes show within an hour.
Do I need SPF for cold email?
Yes, you need SPF for cold email. Gmail and Yahoo ask every sender for SPF or DKIM, and anyone sending more than 5,000 emails a day to Gmail for both. DMARC then needs one of them to pass for your From domain.
Build your DMARC record next →Frequently
asked questions:
Yes, the MailRig SPF record generator is free. There is no account to make, and nothing about your domain is kept.
If your email tool is not on the list, its setup page names its include. Type it under Other includes your tools gave you.
SPF needs to include your cold email sequencer only if it sends from its own servers. Sequencers that send through your Google or Microsoft inboxes are covered by the Google or Microsoft include.
The count goes up by more than one when you select a tool because that tool's include points at more includes of its own. Every one of them counts toward the limit of 10.
No, SPF does not cover your subdomains. Each subdomain that sends email needs its own SPF record.
Still have questions?
Have a question about MailRig, your setup, or switching over? We’re happy to talk it through with you.
Sources
Read on each company's own website. Facts checked 22 Nov 2026. Prices change; the links show today's.
- 1.RFC 7208: SPF · checked 22 Nov 2026
- 2.Google email sender guidelines · checked 22 Nov 2026
- 3.Yahoo sender best practices · checked 22 Nov 2026
More free tools
Cold email copy analyzer
Paste a cold email and get a score out of 100 across 8 parts, from spam words to psychology.
Open it →
Email record checker
Check SPF, DKIM, DMARC, MX and more in one go, with the exact line to paste for every fix.
Open it →
DMARC record generator
Pick a policy and a report address, then copy one DMARC line to paste into your DNS.
Open it →
Cold email cost calculator
Type the emails you want to send a day and see the inboxes, domains, monthly bill and cost per customer.
Open it →
Email header checker
Paste the headers of a test email. See whether SPF, DKIM and DMARC really passed, and whether they match your From domain.
Open it →
Sending domain ideas
Type your brand and get 22 .com sending domain ideas, with the ones still free to buy shown first.
Open it →
Email list checker
Paste up to 100 addresses and catch typos, broken addresses, dead domains and throwaway inboxes before you send.
Open it →
Send 10,000 cold emails a day without renting a single inbox.
Your own dedicated IPs on isolated sending infrastructure, provisioned and warmed for you. One flat price.
