Xpoudy

How to Set Up Microsoft 365 DMARC in Cloudflare

Short answer

Publish a DMARC TXT record under _dmarc in the Cloudflare zone for your Microsoft 365 From domain. If it is your first policy, monitor with p=none and a working reporting address. Confirm that Microsoft 365 and other legitimate services align before enforcing quarantine or rejection.

By Xpoudy ·

Establish alignment on the custom domain

Send a Microsoft 365 message using your actual custom From domain. Look at the passing SPF envelope domain and DKIM signing domain in the recipient’s headers. A passing default onmicrosoft.com signature may be valid on its own but miss alignment with a custom From domain. Enable custom-domain DKIM and verify the signature on a fresh test before touching a running enforcement policy.

Set one record in the correct Cloudflare zone

For the root domain, create a single TXT record at _dmarc. If your test messages use an independently managed subdomain, check whether it has its own policy or inherits from the organizational domain.

FieldExample
TypeTXT
Name_dmarc
Contentv=DMARC1; p=none; rua=mailto:dmarc-reports@example.com
TTLAuto

Use a reporting address or service you control. If the address is outside the policy domain, confirm its report authorization and configuration.

Test each sender stream

Run Xpoudy’s DMARC Checker for the actual From domain. Send a controlled test through Exchange Online, then through any third party that sends as the same domain. Review aggregate reports for legitimate sources that do not align and fix them before choosing enforcement. Check report volumes after the policy change so you can investigate sudden deviations.