Microsoft 365 how-to

How to set up DMARC for Microsoft 365

DMARC stops attackers sending email that claims to come from your domain, and big mailbox providers now expect it. Here is how to set up SPF, DKIM and DMARC for a Microsoft 365 domain, and how to move to enforcement without blocking your own mail.

Updated November 2026 · Written by IT Ops in a Box

Why it matters

Without DMARC, anyone can send email that appears to come from your domain to your customers, vendors and staff. That makes invoice fraud and phishing far easier. Large mailbox providers have also tightened the rules. Since May 2025, Microsoft rejects mail from high-volume senders (5,000 or more messages a day to Outlook.com, Hotmail and Live addresses) that don't pass SPF and DKIM and publish at least a p=none DMARC policy. Google and Yahoo introduced similar requirements in 2024. Cyber insurers and security questionnaires increasingly ask about it too.

How the three records fit together

RecordWhat it doesWhere you set it up
SPFLists the servers allowed to send mail for your domain.A TXT record at your DNS host
DKIMAdds a cryptographic signature that proves the message came from your domain and wasn't altered.Turn it on in Microsoft Defender, then publish two CNAME records at your DNS host
DMARCTells receiving servers what to do when a message fails SPF and DKIM alignment, and sends you reports.A TXT record named _dmarc at your DNS host

Step 1: SPF

Publish one SPF TXT record for the domain that includes Microsoft 365 and every other service that sends mail as you, such as your marketing platform, CRM or billing system. For a domain that only sends through Microsoft 365, it looks like this:

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

Keep to a single SPF record per domain, and remember SPF has a limit of 10 DNS lookups, so don't pile on includes you no longer use.

Step 2: DKIM

  1. In the Microsoft Defender portal (security.microsoft.com), go to Email & collaboration > Policies & rules > Threat policies > Email authentication settings > DKIM.
  2. Select your custom domain. The portal shows the two CNAME records to publish.
  3. Create those two CNAME records at your DNS host, wait for them to propagate, then return and turn DKIM signing on.
  4. Set up DKIM in each third-party service that sends as your domain too, so their mail aligns.

Step 3: Publish DMARC in monitoring mode

Microsoft 365 has no setting for DMARC on custom domains; you create the record at your DNS host. Start with a monitoring policy and a dedicated mailbox for reports (not someone's personal inbox):

Name:  _dmarc
Type:  TXT
Value: v=DMARC1; p=none; rua=mailto:[email protected]

Aggregate reports arrive as XML files from each receiving provider. A DMARC reporting service, many of which have free tiers, turns them into readable dashboards.

Step 4: Move to enforcement gradually

  1. Monitor at p=none for a few weeks. Use the reports to find every legitimate service sending as your domain, and fix their SPF and DKIM.
  2. Move to p=quarantine. Failing mail goes to junk. Microsoft notes you can ramp up with the pct tag, for example pct=25, then 50, then 100.
  3. Move to p=reject once reports show legitimate mail passing consistently. Failing mail is refused outright.
  4. Microsoft recommends starting with lower-volume subdomains and doing the main domain last.

Step 5: Don't forget your other domains

  • Your onmicrosoft.com domain. Microsoft already handles SPF and DKIM for it, but you add the DMARC record yourself, in the Microsoft 365 admin center under Settings > Domains. Microsoft recommends v=DMARC1; p=reject if you don't send from it.
  • Parked domains that never send email should publish v=DMARC1; p=reject; so nobody can spoof them.
  • Inbound protection. In your anti-phishing policy, Microsoft recommends turning on Honor DMARC record policy when the message is detected as spoof, so other domains' quarantine and reject policies are applied to mail you receive.

Common mistakes

  • Jumping straight to p=reject before finding every service that sends as you, and then wondering why invoices stopped arriving.
  • Leaving DMARC at p=none forever. Monitoring alone doesn't stop spoofing.
  • Two SPF records for the same domain, which makes SPF fail.
  • Sending reports to a personal mailbox that fills up and gets ignored.
Free resource

Microsoft 365 Security Baseline Checklist

35 settings that close the gaps attackers, auditors and cyber insurers look for first, each with why it matters and exactly where to change it. Start with the 7 marked Critical.

Free. We'll also send occasional practical IT ops tips and information about our products and services. Unsubscribe any time.

FAQ

Common questions

Does Microsoft 365 set up DMARC automatically?

Not for your custom domains. Microsoft configures SPF and DKIM for the onmicrosoft.com domain, but you publish SPF, enable DKIM and create the DMARC record yourself for each custom domain.

How long should we stay at p=none?

Long enough to see every legitimate sender in your reports, often a few weeks. Then move to quarantine, and to reject once the reports show your legitimate mail consistently passing.

Does Microsoft 365 send DMARC reports?

Microsoft 365 sends aggregate (rua) reports when your MX record points directly to Microsoft 365. It doesn’t send forensic (ruf) reports.

Will DMARC stop all phishing?

No. It stops spoofing of your exact domain. Look-alike domains and compromised accounts need other controls, such as user training, external sender tagging and MFA.

Sources

This guide is general information, not legal, insurance or audit advice.