Skip to content
DFY Inbox Setup

SPF Record Generator

Choose the services that send email as your domain and get one correct SPF record to copy into your DNS.

Free · No sign-up · Results in seconds

Services that send email as your domain

Your own mail servers, separated by spaces or commas. Ranges like 203.0.113.0/24 work.

Any other service’s SPF domain, for example spf.example.net.

Your SPF record

TXT record · host @

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

  • Pass

    About 1 of 10 DNS lookups

    Each include can contain more lookups of its own. Check the live record with the SPF checker after you publish it.

  • Note

    Replace, do not add

    A domain can only have one SPF record. If one already exists, edit it instead of adding a second.

Published it?

Run the SPF checker to confirm the live record and the real lookup count.

Check SPF

How to create an SPF record

  1. Pick every service that sends email using your domain in the From address.
  2. Copy the record and open your DNS host (GoDaddy, Namecheap, Cloudflare, Porkbun and others).
  3. If a record starting with v=spf1 already exists, edit it. Never add a second one.
  4. Otherwise add a TXT record with host @ and the value above.
  5. Check it with the SPF checker once it is live.

SPF records for common email providers

TypeHostValue
TXT@v=spf1 include:_spf.google.com ~all
TXT@v=spf1 include:spf.protection.outlook.com ~all
TXT@v=spf1 include:zohomail.com ~all

The first is for Google Workspace, the second for Microsoft 365 and the third for Zoho Mail (EU accounts use include:zohomail.eu). If more than one service sends for the domain, combine their includes into one record with the generator above.

The full walkthrough for each registrar is in our SPF, DKIM and DMARC setup guide.

Frequently asked questions

What is the SPF record for Google Workspace?

v=spf1 include:_spf.google.com ~all, added as a TXT record at the root of the domain (host @).

What is the SPF record for Microsoft 365?

v=spf1 include:spf.protection.outlook.com ~all, added as a TXT record at the root of the domain.

I use Google and SendGrid. Do I need two records?

No. Put both in one record: v=spf1 include:_spf.google.com include:sendgrid.net ~all.

What is the difference between ~all and -all?

~all marks other senders as suspicious (soft fail); -all tells receivers to reject them (hard fail).

Want inboxes that pass every one of these checks?

We set up Google Workspace, Microsoft 365 and Azure inboxes on your own domains, with SPF, DKIM, DMARC and MX checked by hand before you get them.