Fix guides › SPF › Cloudflare › Microsoft 365
How to fix SPF on Cloudflare for Microsoft 365
SPF is the list of services allowed to send email as your domain. Here is what Microsoft 365 needs and where it goes at Cloudflare.
Check your Cloudflare SPF record now
A free check of your domain's live public records. Nothing is changed.- What we found: We read your live SPF record and tell you whether Microsoft 365 is set up. Free, about 10 seconds.
- Why it matters: It reads your own records, so you see your own problem, not a general one.
- What to do: Type your domain and press Check.
The record Microsoft 365 needs
The exact SPF value from the email service's own help page.- What we found: Microsoft's page gives this exact record for domains that send only through Microsoft 365.
- Type
- TXT
- Name
@
- Content
v=spf1 include:spf.protection.outlook.com -all
- Why it matters: Without it, inboxes can't tell your real email from fakes, so they may send it to spam.
- What to do: Add it at Cloudflare (steps below). If you already have an SPF record, don't add a second one.
Where to add it at Cloudflare
Cloudflare's own steps for adding a TXT record, from its help pages.- What we found: Cloudflare calls the fields Name and Content. For the domain itself, the name is @.
- Why it matters: Each host labels its screens differently, so these are its own words.
- What to do: Follow Cloudflare's steps:
- Sign in to the Cloudflare dashboard and select your domain.
- Go to the DNS Records page.
- Select Add record and choose TXT as the Type.
- Fill in the fields as shown.
- Select Save.
Already have an SPF record?
A domain may have only one SPF record.- What we found: A domain may only have one SPF record. Two records break each other and SPF fails for every email.
- Why it matters: Adding a second record is the most common SPF mistake.
- What to do: Edit the record that starts with v=spf1 and put include:spf.protection.outlook.com just before the ~all or -all at the end. Or let the free check write the merged line for you.
More guides
Where each fact on this page comes from, and the same guide for other setups.- What we found: Checked against Microsoft Learn: SPF (updated 2026-07-03), Cloudflare docs: create DNS records (updated 2026-05-06), Cloudflare docs: zone apex records on 2026-11-15. We check them again every 90 days.
- Why it matters: Screens and values change. Dated sources tell you this page is current.
- What to do: Same guide at: GoDaddy · Namecheap · Wix · Bluehost · Hostinger · Shopify · Amazon Route 53 · IONOS. Other guides for Microsoft 365 on Cloudflare: DKIM · DMARC · Email going to spam. All fix guides.
Company and product names are trademarks of their owners and are used only to describe how to set up your domain with them. DNSFix isn't affiliated with or endorsed by them.