Skip to content
Docs/DNS Setup

Setting Up SPF Records

What is SPF?

SPF (Sender Policy Framework) is a DNS TXT record that lists the servers authorized to send email for your domain.

Basic SPF Record

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

This authorizes Google Workspace and rejects all other senders.

Common Include Mechanisms

Provider Include
Google Workspace include:_spf.google.com
Microsoft 365 include:spf.protection.outlook.com
SendGrid include:sendgrid.net
Mailchimp include:servers.mcsv.net
Amazon SES include:amazonses.com
Zoho include:zoho.com

Important Rules

  • 10 DNS lookup limit — Each include:, a:, mx: mechanism counts as a lookup
  • One SPF record per domain — Multiple TXT records with v=spf1 will cause failures
  • End with -all — This rejects unauthorized senders. ~all (softfail) is weaker

Building Your Record

Use our SPF Builder to generate your SPF record with the correct mechanisms for your email providers.

Check your existing record with the SPF Checker.