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.
| Service | Include |
|---|---|
| Google Workspace | include:_spf.google.com |
| Microsoft 365 | include:spf.protection.outlook.com |
| Zoho Mail | include:zoho.com (US) or include:zoho.eu (EU) |
| Amazon SES | include:amazonses.com |
| SendGrid | include:sendgrid.net |
| Mailgun | include: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;aandmxcost one each. - Move bulk senders to a subdomain. Send newsletters from
news.example.comwith 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.