Free SPF Record Generator

SPF Record Generator

Build your SPF record step by step. Use the tool below or follow our guide to create the perfect SPF record for your domain.

Generate Your SPF Record

SPF Record Generator

Open SPF Generator Tool →

Powered by MxToolbox - Opens in new tab

Quick SPF Templates

Copy and customize these templates based on your email setup:

Google Workspace Only

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

Microsoft 365 Only

v=spf1 include:spf.protection.outlook.com -all

Google Workspace + Mailchimp

v=spf1 include:_spf.google.com include:servers.mcsv.net -all

Microsoft 365 + SendGrid

v=spf1 include:spf.protection.outlook.com include:sendgrid.net -all

Multiple Services

v=spf1 include:_spf.google.com include:servers.mcsv.net include:sendgrid.net -all

No Email (Domain Doesn't Send)

v=spf1 -all

Include Values Reference

Service Include Value
Google Workspace include:_spf.google.com
Microsoft 365 include:spf.protection.outlook.com
Mailchimp include:servers.mcsv.net
SendGrid include:sendgrid.net
Amazon SES include:amazonses.com
HubSpot include:spf.hubspot.com
Klaviyo include:spf.klaviyo.com
Postmark include:spf.mtasv.net
Zendesk include:mail.zendesk.com
Freshdesk include:email.freshdesk.com
Shopify include:shops.shopify.com

Building Your SPF Record

Step 1: Start with version

Always begin with: v=spf1

Step 2: Add your sending sources

Add an include: for each service that sends email for you.

Step 3: Add specific IPs (if needed)

If you have your own mail server: ip4:YOUR.IP.ADDRESS

Step 4: End with policy

Choose your ending:

  • -all – Hardfail (reject unauthorized) - Recommended
  • ~all – Softfail (mark as suspicious) - Safer for testing

Important Rules

  • ⚠️ Maximum 10 DNS lookups – Each include: counts as 1+ lookups
  • ⚠️ Only ONE SPF record per domain – Multiple records cause failures
  • ⚠️ Maximum 255 characters per string – Long records may need splitting

After Creating Your Record

  1. Add it as a TXT record in your DNS
  2. Wait for propagation (up to 48 hours)
  3. Verify with SPF Checker

Related Resources