Email authentication

SPF Record Examples (Copy-Paste for Common Setups)

By Kalenfy · Updated 27 June 2026 · 6 min read

SPF Record Examples (Copy-Paste for Common Setups)

TL;DR: An SPF record is one TXT record on your domain starting with v=spf1, listing who may send your email, ending in -all (strict) or ~all (soft). Below are copy-paste examples for the most common setups. Remember: only one SPF record per domain, and watch the 10-lookup limit. Scan your domain free to check yours.

The syntax in 20 seconds

Copy-paste examples

Google Workspace:

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

Microsoft 365:

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

Google Workspace + a third-party sender (e.g. SendGrid):

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

Your own mail server by IP:

v=spf1 ip4:203.0.113.10 -all

Parked / non-sending domain:

v=spf1 -all

Replace the includes/IPs with your actual senders. Combine all your senders into this one record — don't create a second SPF record.

Before you publish

  1. List every service that sends mail as your domain and include each one.
  2. Keep total DNS lookups under 10 (each include can cost several).
  3. Use ~all while testing, then tighten to -all.
  4. Scan your domain to confirm it's valid and there's only one SPF record.

FAQ

Can I have two SPF records if I use two providers?

No — merge them into one record with multiple include: entries. Two records is invalid.

Should I end with -all or ~all?

-all once you're sure all senders are listed; ~all as a safer interim.

Does SPF cover my whole domain?

SPF is per-domain. Subdomains that send mail need their own SPF records.

Not sure your SPF is right? Scan your domain, then reply to your report — we're developers and we'll build you one clean, valid SPF record.

Check your own domain — free

Kalenfy runs a passive scan of your SPF, DKIM, DMARC, DNSSEC, CAA and more, then gives you a downloadable PDF report with exact fixes. You see your grade first — no email needed to view it.

Scan my site free

Related guides