Make Microsoft 365 pass DMARC

How to make email sent through Microsoft 365 pass DMARC: set up DKIM for your domain, align SPF, and confirm it works.

Why it fails

DMARC passes when a message has a DKIM signature for your domain, or passes SPF for your domain. Until you set them up, Microsoft 365 signs mail with its own domain (onmicrosoft.com) instead of yours, and its servers are not listed in your SPF record. Receivers then cannot tell your real mail from a forgery, and DMARC fails.

Step 1: Set up DKIM for your domain

Turn on DKIM signing for your domain in Microsoft 365. It gives you one or more DNS records to publish, usually TXT or CNAME records at a name ending in ._domainkey.yourdomain. Publish them at your DNS provider, then switch signing on in Microsoft 365 if it does not start automatically.

Read Microsoft 365’s DKIM instructions

Step 2: SPF

Add include:spf.protection.outlook.com to the SPF record on your domain, before the final ~all or -all. If you do not have an SPF record yet, a minimal one is:

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

Your domain must have only one SPF record, so add to the existing one rather than creating another. SPF allows at most 10 DNS lookups; the domain checker counts them for you.

Read Microsoft 365’s SPF instructions

Step 3: Confirm it works

DNS changes can take from a few minutes to a day to be visible everywhere. Once the records are published, use the domain checker to confirm your DMARC and SPF records are valid. It looks for DKIM keys at common selectors; if you know the selector names Microsoft 365 gave you, add them under “DKIM selectors”.

The real test is your DMARC reports. Within a day or two of the change, mail from Microsoft 365 should show an aligned DKIM pass. With a free DMARC Owl account, Microsoft 365 moves from Needs fixing to Healthy on your dashboard, and you can see the change day by day.

How we recognise Microsoft 365 in reports

These are the domains DMARC Owl uses to identify Microsoft 365 as the sender in your reports.

DKIM signing domains
  • onmicrosoft.com
SPF includes
  • spf.protection.outlook.com

Microsoft 365 may change its setup steps over time; its own documentation is the authority. Website: www.microsoft.com/microsoft-365