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.

ToolInclude
Google Workspaceinclude:_spf.google.com
Microsoft 365include:spf.protection.outlook.com
MailRiginclude:spf.mailrig.io
Zoho Mailinclude:zohomail.com
SendGridinclude:sendgrid.net
Mailguninclude:mailgun.org
Amazon SESinclude:amazonses.com
Brevoinclude:spf.brevo.com
Postmarkinclude:spf.mtasv.net
Mailchimp Transactionalinclude: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. 1

    Copy the value

    Press Copy next to the value.

  2. 2

    Find your current SPF record

    In your DNS records, look for a TXT record whose value starts with v=spf1.

  3. 3

    Replace it

    Paste the new line as its value. Adding a second record instead breaks both.

  4. 4

    Check it

    Run the record checker on your domain. Most changes show within an hour.

Check your SPF record →

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.

Icon

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. 1.RFC 7208: SPF · checked 22 Nov 2026
  2. 2.Google email sender guidelines · checked 22 Nov 2026
  3. 3.Yahoo sender best practices · checked 22 Nov 2026