# SPF Checker and SPF Record Examples for Every Setup

> Check your SPF record free, then copy the right example for Google Workspace, Microsoft 365, extra senders or parked domains, inside the lookup limit.

Page: https://adengage.ae/growth-gps/guides/spf-record-examples.html
Published: 2026-11-22
Updated: 2026-11-22
Tool on this page: email checker (https://adengage.ae/growth-gps/email-checker.html)

## SPF checker and SPF record examples: one correct record for every sender

Check your domain's SPF free below, then copy the example that matches your setup and stay inside the 10 DNS lookup limit.

## What is an SPF record?

An SPF record is a single TXT record on your domain that lists the servers allowed to send email for it, such as v=spf1 include:_spf.google.com ~all for Google Workspace. Receivers compare the server that sent a message with that list. A domain must have only one SPF record, and checking it must take no more than 10 DNS lookups.

## How to check and fix your SPF record

1. **Check the record** Enter your domain above. The checker reads your SPF TXT record, says how it ends, and counts the DNS lookups it can see in it.
2. **Make sure there is only one** If the check shows more than one SPF record, merge them. RFC 7208 says a domain must not have multiple SPF records, and receivers treat that as a permanent error.
3. **List every sender** Mailbox provider, newsletter platform, CRM, invoicing tool, website forms and any office server. Each one that sends as your domain needs an `include:` or `ip4:` entry.
4. **Start from the right example** Take the record below that matches your mail provider, then add your other senders before the `all` at the end.
5. **Choose how it ends** Google's record ends in `~all`. Microsoft recommends `-all` for Microsoft 365 domains that also have DKIM and DMARC. Never end in `+all`.
6. **Count the lookups** include, a, mx, ptr, exists and redirect each count; ip4, ip6 and all do not. Nested includes count too. Stay at 10 or fewer.
7. **Publish, then wait** Replace the old TXT record with the new one at your DNS host. Google says SPF can take up to 48 hours to start working.
8. **Check again** Run the next check on the full email checker page, and confirm DKIM and DMARC there at the same time.

## SPF record examples

Copy the line that matches your setup, then add any other sender before the ending.

| Setup | Record | Notes |
|---|---|---|
| Google Workspace only | `v=spf1 include:_spf.google.com ~all` | Google's own record |
| Google Workspace and Amazon SES | `v=spf1 include:_spf.google.com include:amazonses.com ~all` | Google's example of a second sender |
| Microsoft 365 only | `v=spf1 include:spf.protection.outlook.com -all` | Microsoft's record for its commercial cloud |
| Microsoft 365 and an office mail server | `v=spf1 ip4:192.168.0.10 include:spf.protection.outlook.com -all` | Microsoft's example; use your server's public IP address |
| A marketing subdomain | `v=spf1 include:sender.example include:spf.protection.outlook.com -all` | Published on marketing.yourdomain; each sending subdomain needs its own record |
| A domain that sends no mail | `v=spf1 -all` | Microsoft's record for parked domains |

Records from Google Workspace Admin Help and Microsoft Learn. sender.example stands for the include value your sending service gives you.

## How the ending changes the result

| Ending | Result for servers not listed | When to use it |
|---|---|---|
| -all | Fail | Microsoft recommends it for Microsoft 365 domains with DKIM and DMARC in place |
| ~all | Softfail | Used in Google's record; a common choice while you confirm every sender |
| ?all | Neutral | Testing only; Microsoft does not recommend it in production |
| +all | Pass, for any server at all | Never: it lets anyone send as you |

Microsoft notes that DMARC treats both -all and ~all as SPF failures.

## The SPF checklist

- [ ] Exactly one TXT record on the domain starts with v=spf1
- [ ] Every service that sends as your domain is listed
- [ ] Services you no longer use have been removed
- [ ] The record ends in ~all or -all, never +all
- [ ] No ptr mechanism, which RFC 7208 says should not be published
- [ ] 10 DNS lookups or fewer, with nested includes counted
- [ ] Each subdomain that sends mail has its own SPF record
- [ ] Parked domains carry v=spf1 -all
- [ ] The record is published as TXT, the only type RFC 7208 allows
- [ ] Long records are split into strings of 255 characters or fewer
- [ ] DKIM and DMARC are set up too; SPF is one record of three, not the whole job

## Who uses this guide

- **IT leads** Audit SPF on every domain and subdomain the business owns, and remove senders nobody uses any more.
- **Developers** Add the include for a new transactional email service before the first password reset or receipt goes out.
- **Office managers** Check SPF after changing mail provider, when an old record is easy to leave behind.
- **Marketing teams** Before connecting a new newsletter or CRM tool, check how many lookups the record has left.
- **Freelancers on their own domain** Get the single Google or Microsoft record right on the first day.
- **Managed IT providers** Spot duplicate SPF records on client domains in seconds and send the merged record.

## Worked examples

### Two records after a migration

Suppose the check shows `v=spf1 include:_spf.google.com ~all` and a second record left by your old host. Both are now invalid. Delete the old one, or fold any sender you still use into the Google record as one more include.

### Twelve lookups

Suppose your record has eight includes, an a and an mx, and two of those includes hold includes of their own. That is twelve lookups, over the limit, so SPF fails with a permanent error. The checker counts the ten it can see in your own record, which puts you at the limit; the two nested ones push you over. Remove senders you no longer use, and replace a and mx with ip4 entries where the addresses are stable.

### Microsoft 365 ending in ~all with no DKIM

Suppose your Microsoft 365 domain ends in `~all` and has no DKIM. Microsoft notes that the DMARC policy is effectively ignored for ~all failures when the message carries no DKIM signature. Turn on DKIM, then move to `-all` as Microsoft recommends.

## What changes in 2027 for SPF

### Now

- RFC 7208 (2014) is still the SPF standard: one record per domain, published as TXT, with at most 10 terms that trigger DNS lookups.
- Google's record for Workspace still ends in ~all, while Microsoft recommends -all for Microsoft 365 domains with DKIM and DMARC.
- Microsoft counts include, a, mx, exists and redirect towards the limit, and notes that ip4, ip6 and all do not count.

### Next

- AdEngage UAE expects growing businesses to add more sending tools in 2027, from CRMs to booking systems, so the 10 lookup limit will bite more often. Decide which senders really need SPF.
- Move bulk senders to their own subdomain, as Microsoft's example does with a marketing subdomain, so the main record stays short.
- Review SPF every quarter and after every new tool, because a record that was right last year may still list senders you have dropped.

## Sources

- [RFC Editor: RFC 7208, Sender Policy Framework (SPF)](https://www.rfc-editor.org/rfc/rfc7208.html)
- [Google Workspace Admin Help: Set up SPF](https://knowledge.workspace.google.com/admin/security/set-up-spf)
- [Microsoft Learn: Set up SPF to identify valid email sources for your Microsoft 365 domain](https://learn.microsoft.com/en-us/defender-office-365/email-authentication-spf-configure)

## Questions people ask

### What does an SPF checker do?

It reads the SPF TXT record on your domain from public DNS and tells you whether there is exactly one, how it ends and how many DNS lookups it needs. This one also checks DKIM, DMARC and MX.

### What is the SPF record for Google Workspace?

v=spf1 include:_spf.google.com ~all. If other services send as your domain, add an include for each before the ~all, as in Google's example with include:amazonses.com.

### What is the SPF record for Microsoft 365?

v=spf1 include:spf.protection.outlook.com -all for Microsoft's commercial cloud. Add other senders before the -all, for example an ip4 entry for an office mail server.

### Can a domain have two SPF records?

No. A domain must not have more than one SPF record, and receivers return a permanent error when they find two. Merge every sender into one record.

### Should SPF end with ~all or -all?

DMARC treats both as SPF failures. Google's record uses ~all; Microsoft recommends -all for Microsoft 365 domains that also have DKIM and DMARC. Never use +all.

### What is the SPF 10 lookup limit?

Checking an SPF record may trigger at most 10 DNS lookups. include, a, mx, ptr, exists and redirect count, and so do nested includes, while ip4, ip6 and all do not. Over 10, SPF fails with a permanent error.

### Does each subdomain need an SPF record?

Yes, if it sends mail. Microsoft notes that the record on your main domain does not cover a subdomain such as marketing.yourdomain, which needs its own.

### How long does a new SPF record take to work?

Google says SPF can take up to 48 hours to start working after you publish it. Check again on the full email checker page once that time has passed.

### Does the checker count nested includes?

No. It counts the lookups it can see in your own record and marks the number as an estimate. Includes inside includes add more, so treat a count close to 10 as a full record.

### Is the SPF checker free?

Yes. It is free with no login, reads public DNS only, and allows 30 email checks a day per visitor.

By the AdEngage UAE growth team. Reviewed by Pancham SN Bannerrjee, Founder and CEO. Published 22 November 2026. Last updated 22 November 2026.

6th Floor, Meydan Grandstand, Meydan Road, Nad Al Sheba 1, Dubai. uae@adengage.ae. WhatsApp +971 54 566 6253.
