Configure a DMARC TXT Record for Microsoft 365 Email
Question details
Configure SPF, DKIM, and DMARC for a custom domain used with Microsoft 365 email.

- Product
- Microsoft 365 email
- Device & OS
- not provided
- Scenario
- A domain administrator wants to authenticate legitimate email senders and establish a DMARC policy.
- Observed behavior
- The desired result is a published DMARC record that lets the domain owner monitor authentication and gradually enforce a policy.
Sign in to the DNS provider that manages your domain and ensure you have access to the Microsoft Defender portal. List all services that send email using the domain, and choose a mailbox that can receive DMARC reports.
Publish and Monitor a DMARC Record for Microsoft 365
Start with a monitoring policy after configuring SPF and DKIM, then strengthen the policy once legitimate senders pass alignment.
DMARC checks whether SPF or DKIM passes and aligns with the domain in the visible From address. A monitoring policy collects reports without requesting that recipients quarantine or reject failing messages.
In your DNS provider's management panel, check the TXT record at the root of your domain. For Microsoft 365, it typically includes include:spf.protection.outlook.com; add any other legitimate sending services to the same SPF record rather than creating a second one.
In the Microsoft Defender portal, open Email & collaboration > Policies & rules > Threat policies > Email authentication settings > DKIM. Select your domain, add the CNAME records shown there to your DNS provider, and enable DKIM signing after the records are available.
In your DNS provider's DNS management panel, add a TXT record with the host name _dmarc and the value v=DMARC1; p=none; rua=mailto:reports@yourdomain.com. Replace the email address with a mailbox that can receive reports. Some providers require the full host name, such as _dmarc.yourdomain.com.
After DNS changes propagate, look up the TXT record at _dmarc.yourdomain.com and review the aggregate reports sent to your reporting mailbox. Confirm that each legitimate sender passes either SPF or DKIM with alignment to the visible From domain.
Once legitimate senders authenticate and align, edit the existing DMARC TXT record in your DNS panel to change p=none to p=quarantine. After further monitoring, change it to p=reject when you are confident that legitimate mail will not be affected.

Track Your Email Authentication Setup With WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface and Microsoft Office format compatibility for an easy transition. Use WPS Spreadsheets to track senders and DNS changes; configure DMARC separately with your DNS and Microsoft 365 administrators.

Frequently Asked Questions
Where do I add the DMARC record for Microsoft 365?
Add it in the DNS management panel for your domain, not as a Microsoft 365 mailbox setting. Create a TXT record at _dmarc.yourdomain.com, or enter _dmarc if your DNS provider appends the domain automatically.
Should I start with p=reject?
Start with p=none so you can review aggregate reports and verify that legitimate senders pass SPF or DKIM alignment. Move to quarantine and then reject after resolving authentication issues.
Can I have more than one SPF record for my domain?
Publish only one SPF TXT record for a domain. In your DNS panel, combine Microsoft 365 and other authorized senders into that record, and check that the resulting policy stays within SPF's DNS lookup limit.
Does a message need to pass both SPF and DKIM for DMARC?
No. DMARC passes if either SPF or DKIM passes and aligns with the domain in the visible From address.
Why are DMARC reports not arriving at an external address?
Check the rua address in your DMARC TXT record and confirm that the mailbox accepts reports. If the reporting address is on another domain, its owner may need to publish a DNS authorization record.




