Protect new mailboxesFresh mailboxes burn fast on a dirty list

Verify every lead before the first send and keep bounces low from day one.

Verify 25 emails free →
Product Bulk verificationReal-time APISignup form widget Catch-all detectionRole and disposable flagsFree email checker
Solutions Cold email agenciesSales teams and SDRsDevelopers and SaaS InstantlySmartleadApollolemlistClayHubSpotMailchimpWoodpeckerReply.ioSaleshandyZapierMaken8n All integrations
Mailboxes Google Workspace mailboxesOutlook mailboxesNew cold domain checklist
Compare vs ZeroBouncevs NeverBouncevs Emailable Pricing comparedCredit expiry comparedAll comparisons
Resources GuidesBounce rate benchmarksHow many bounces burn a domain?MX records MX lookupDomain health reportEmail list cleanerAll MX Tools
Pricing
Home / MX Tools / SPF record generator

SPF record generator

Tick the services that send email for your domain, add any servers of your own, and copy one valid SPF record. We count the DNS lookups live, so you'll know before you publish if it breaks the 10-lookup limit.

Updated 2026-11-24

Services that send email for your domain

TXT record on @ (your root domain)


      

One record, every sender

SPF (Sender Policy Framework, RFC 7208) is a single TXT record on your domain that lists every server allowed to send mail as you. Receivers compare the sending server's IP with that list. The two mistakes that break it are publishing a second SPF record when you add a new tool, and stacking includes until the record needs more than 10 DNS lookups. Either one makes SPF fail for all your mail, not just the new tool's.

This generator builds one record and counts the lookups live: it fetches each include over DNS-over-HTTPS from your browser and follows the nested includes, the same way a receiver does.

The include values used here

Each option adds the include its provider publishes. We confirmed on 2026-11-24 that every one of them resolves to a live SPF record. Your provider's setup page is still the authority: some, like Mailchimp's marketing platform and Postmark with a custom return path, don't need an SPF include on your domain at all, because they send with their own envelope domain.

ServiceInclude
Google Workspaceinclude:_spf.google.com
Microsoft 365include:spf.protection.outlook.com
Zoho Mailinclude:zoho.com (US) or include:zoho.eu (EU)
Amazon SESinclude:amazonses.com
SendGridinclude:sendgrid.net
Mailguninclude:mailgun.org

Setting up a mailbox provider from scratch? Our Google Workspace and Microsoft 365 MX guides list the full set of records.

Staying under 10 lookups

  • Remove senders you've stopped using. Old CRM and newsletter includes are the most common cause of going over.
  • Prefer ip4: for your own servers. IP entries cost no lookups; a and mx cost one each.
  • Move bulk senders to a subdomain. Send newsletters from news.example.com with its own SPF record, which has its own 10-lookup budget.
  • Be careful with "flattening". Replacing includes with the IPs they contain gets you under the limit, but the record goes stale when the provider changes IPs.

After you publish

Wait for the old TTL to pass, then check it with the SPF, DKIM and DMARC checker, and add DMARC with the DMARC record generator. SPF proves who may send; it does nothing about where you send. If your campaigns bounce, the fix is the list: verify it free.

Common questions

Can a domain have two SPF records?

No. RFC 7208 allows exactly one SPF record per domain. With two, receivers return a permanent error and SPF fails for all your mail. Merge every sender into a single record.

Should I use ~all or -all?

Use ~all (soft fail) while you're still finding every service that sends for you, then -all (fail) when you're sure the list is complete. With DMARC enforcing, the difference matters less, because DMARC decides what happens to unauthenticated mail.

What is the SPF 10-lookup limit?

SPF evaluation may trigger at most 10 DNS lookups, counting include, a, mx, ptr, exists and redirect, including those inside nested includes. Over 10, SPF returns a permanent error and fails. ip4 and ip6 entries don't count.

Start your free trial →