Skip to content
home

Microsoft 365 Emails Going to Junk? Fix SPF, DKIM and DMARC

Invoices, reminders and replies are leaving your Microsoft 365 mailbox, and clients find them in junk days later, if at all. In most small firms the cause is not the wording of the email. It is three DNS records that prove the email really came from your domain: SPF, DKIM and DMARC. Here is how to check them and fix them, in the order I use with clients.

Quick answer

Emails from Microsoft 365 usually go to junk because SPF, DKIM or DMARC fails for your domain. Publish one SPF TXT record that includes spf.protection.outlook.com and every other service that sends as you, turn on DKIM in the Microsoft Defender portal by adding its two CNAME records, then add a DMARC TXT record at _dmarc starting with p=none.

Daniel AwokunleDaniel AwokunleUpdated 22 November 2026 6 min read
Watch first: the whole guide in 104 secondsVideo page and transcript
Video transcript

Your emails are landing in clients' junk folders. Here's how to fix it in Microsoft 365, step by step.

Meet Olivia Grant, practice manager at Kestrel Dental in Leeds. Her appointment reminders go straight to junk, and patients miss their bookings.

First, read the evidence. Open the message header and look for three words: SPF, DKIM and DMARC. Each one says pass or fail.

SPF lists who is allowed to send for your domain. Add one TXT record that includes spf.protection.outlook.com. Only one: two SPF records break both.

Her booking system sends reminders too. It isn't in the record, so it fails. Add its include to the same line.

Next, DKIM. It signs every email. In the Microsoft Defender portal, open email authentication settings, add the two CNAME records it shows you, then turn it on.

Then DMARC. One TXT record at _dmarc. Start with p=none and a reporting address, so you can see who sends as you.

After a couple of weeks of clean reports, move to quarantine, then reject. Now fakes can't use your name.

Last, test it. Send to a Gmail address, choose show original, and look for three passes.

Olivia's reminders land in the inbox, and the bookings are back. My tip: list every app that sends as your domain before you touch DNS.

The full guide, with every record ready to copy, is free at winstack365.com.

1. Read the message header first

Don't guess. Ask a client to forward one of your emails that went to junk as an attachment, or send one to your own Gmail or Outlook.com address and find it there. Open the full header: in classic Outlook it is File, Properties, Internet headers; in Outlook on the web and the new Outlook, open the message, select the three dots, then View, View message details; in Gmail it is Show original.

Look for the Authentication-Results line. It shows three results:

spf=fail  dkim=none  dmarc=fail

Each one should say pass. Paste the whole header into Microsoft's Message Header Analyzer if it is hard to read. Whatever fails tells you which of the next steps to start with.

2. SPF: one record that lists every sender

SPF is a TXT record on your domain that lists the servers allowed to send email as you. For a domain that only sends through Microsoft 365, it is:

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

Add it at your DNS host (GoDaddy, Cloudflare, your web host) as a TXT record with the host @. There must be only one SPF record on the domain. If you already have one, edit it instead of adding a second: two SPF records make SPF fail completely, which is one of the most common causes I find.

3. Add the other apps that send as you

Your website contact form, invoicing, booking system, CRM and newsletter tool may all send from your domain. Each one fails SPF unless it is in the same record. Their help pages give the include to add, for example:

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

SPF allows at most 10 DNS lookups, and each include counts, so remove services you no longer use. Where a service offers its own DKIM records, set those up too: it often passes more reliably than SPF.

4. DKIM: turn on signing for your domain

DKIM adds a digital signature to every email. Microsoft 365 signs with its own onmicrosoft.com domain by default, which doesn't match your domain, so DMARC can still fail.

  1. Open the Microsoft Defender portal (security.microsoft.com), then Email & collaboration, Policies & rules, Threat policies, Email authentication settings, and the DKIM tab.
  2. Select your domain. Microsoft shows two CNAME records, selector1._domainkey and selector2._domainkey, with values unique to your tenant.
  3. Add both CNAME records at your DNS host exactly as shown.
  4. Wait for DNS to update (often under an hour), then turn on Sign messages for this domain with DKIM signatures.

If the toggle gives an error, the CNAME records are not visible yet. Check for typos and wait a little longer.

5. DMARC: start with monitoring

DMARC tells receiving servers what to do when an email claiming to be from you fails SPF and DKIM, and sends you reports. Add a TXT record with the host _dmarc:

v=DMARC1; p=none; rua=mailto:dmarc@yourcompany.com

p=none changes nothing about delivery yet. It gives you daily reports showing every service sending as your domain, so you can find the ones you forgot. Gmail and Yahoo now require DMARC from bulk senders, and a domain without it looks less trustworthy to everyone.

6. Tighten DMARC once the reports are clean

After two to four weeks, when the reports show only services you recognise passing, change the policy to quarantine, then later to reject:

v=DMARC1; p=quarantine; rua=mailto:dmarc@yourcompany.com

Now an email that pretends to be from you goes to junk or is refused. This protects your clients from invoice fraud using your name, as well as your own delivery.

7. Test, then check the other causes

Send a fresh email to a Gmail address, open Show original and confirm SPF, DKIM and DMARC all say PASS. If they pass and emails still go to junk, look at the email itself: link shorteners, large attachments, emails that are only an image, or a mass mailing sent from Outlook all hurt delivery. Send newsletters from a proper tool, not from your mailbox.

Frequently asked questions

Why do my Microsoft 365 emails go to junk?

Most often because SPF, DKIM or DMARC fails for your domain: a missing or duplicate SPF record, DKIM not turned on for your own domain, no DMARC record, or another service sending as your domain without being authorised. Check the Authentication-Results line in the message header to see which one fails.

What SPF record does Microsoft 365 need?

v=spf1 include:spf.protection.outlook.com -all as a single TXT record on your domain. If other services send as your domain, add their include values to the same record. Never publish two SPF records.

Is DKIM turned on by default in Microsoft 365?

Microsoft 365 signs with its own onmicrosoft.com domain by default. To sign with your own domain, add the two CNAME records shown in the Microsoft Defender portal under Email authentication settings, then turn on DKIM for the domain.

Want this done for you?

I build this for clients every week. Book a free 30-minute call and I'll tell you exactly what your team needs.

Free: the Microsoft 365 clean-up checklist

The 12 checks I run before building anything in a client's tenant: security, sharing, files and quick wins. Two pages, PDF.

Used only to send the checklist and the odd useful tip. Never shared or sold.

Daniel Awokunle · replies within a day

Tell me what's slowing your team down.

Thirty minutes, no cost, no pitch deck. You'll leave knowing exactly what to build and what it should cost.

Book a free 30-min call
  1. Step 1

    Free 30-min call

    Show me the problem. I'll tell you what I'd build and how long it takes.

  2. Step 2

    Clear quote

    A fixed price and timeline in writing, usually within a day.

  3. Step 3

    Built and handed over

    Built in your own Microsoft 365, with a walkthrough for your team.