How to Setup a DMARC Record for Office 365
If you want to setup dmarc record office 365 correctly, the first thing to understand is that Microsoft 365 supports email authentication, but it does not magically publish DMARC on your behalf. DMARC works alongside SPF and DKIM to help protect your domain from spoofing, phishing, and unauthorized use. In modern Microsoft environments, these three protocols are essential for trustworthy outbound mail and more reliable inbound filtering.
Office 365 domains that send email should be configured with SPF, DKIM, and DMARC together. SPF verifies which servers are allowed to send mail for your domain, DKIM adds a cryptographic signature to prove the message was authorized and unchanged, and DMARC tells receiving servers what to do when authentication fails. When these records are aligned properly, you improve deliverability, reduce impersonation risk, and gain visibility into who is sending mail using your domain.
Step 1: Configure SPF and DKIM for Office 365 First
Before you setup dmarc record office 365, make sure SPF and DKIM are in place. DMARC depends on alignment, so if SPF and DKIM are not configured correctly, DMARC will not protect your outbound mail effectively.
Configure SPF for Microsoft 365
Your SPF record should include Microsoft 365’s sending infrastructure. For most tenants, that means adding:
include:spf.protection.outlook.com
A common SPF record for a Microsoft 365-only environment looks like this:
v=spf1 include:spf.protection.outlook.com -all
If you use other senders such as marketing platforms, ticketing systems, or CRM tools, they must also be included in the SPF record. Keep in mind that SPF has a limit on DNS lookups, so avoid overloading the record with too many include statements.
Enable DKIM in Exchange Admin Center
Office 365 requires DKIM to be enabled for your domain before DMARC can fully validate signed outbound mail. In the Exchange Admin Center (EAC), you typically:
- Open the Microsoft 365 admin or Exchange Admin Center.
- Navigate to DKIM settings.
- Select your domain.
- Enable DKIM signing.
- Publish the two CNAME records Microsoft provides in your DNS.
Those CNAME records point to Microsoft-managed DKIM keys. Once they are published and propagated, Microsoft can sign messages sent from your domain. This is especially important because DKIM often becomes the strongest alignment signal when messages traverse forwarding systems.
Step 2: Generate Your DMARC Record
Once SPF and DKIM are ready, it is time to create your DMARC policy. If you are just getting started, use a cautious policy such as p=none so you can observe mail flow without blocking legitimate messages. Later, move to p=quarantine or p=reject as you gain confidence.
Core DMARC Tags to Include
A standard DMARC record generally includes:
v=DMARC1— the DMARC versionp=none,p=quarantine, orp=reject— your enforcement policyrua=mailto:— aggregate reporting address for monitoring
For example:
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com
If you want to protect your brand more aggressively later, you can change the policy to:
v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@yourdomain.com
Use a DMARC Generator
To make record creation easier and reduce formatting mistakes, you can use the yourDMARC Generator here: https://www.yourdmarc.com/tools/dmarc-generator
A generator helps you build the record with the correct syntax, choose reporting addresses, and avoid common errors such as missing semicolons or invalid tag values. If your goal is to setup dmarc record office 365 with minimal friction, a generator is the fastest way to produce a valid first record.
Best Starting Policy
If your organization sends from multiple systems or has not yet audited all email sources, start with p=none. This will not quarantine or reject mail, but it will give you visibility through reports. After reviewing legitimate senders and fixing any alignment issues, you can gradually move to quarantine or reject.
Step 3: Publish DMARC to Your DNS Hosting Provider
Office 365 is your email platform, but it is usually not your DNS host. Unless your domain is using Microsoft nameservers, you will publish the DMARC record wherever your DNS is managed, such as GoDaddy, Cloudflare, Namecheap, AWS Route 53, or another registrar/DNS provider.
Add the TXT Record
Create a new TXT record with these values:
- Host/Name:
_dmarc - Type: TXT
- Value: Your DMARC policy string
Example:
- Name:
_dmarc - Value:
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com
This creates the DMARC policy for yourdomain.com at _dmarc.yourdomain.com.
Important DNS Tips
- Publish only one DMARC TXT record per domain.
- Make sure the hostname is exactly
_dmarc. - Avoid adding extra quotation marks or hidden spaces.
- Allow DNS propagation time, which may take minutes to several hours.
If you are working to setup dmarc record office 365 for a large organization, document the DNS change carefully so your support, security, and messaging teams know the policy is active and where reports should be delivered.
Step 4: Verify Inbound DMARC Policies in Microsoft 365
DMARC is not only about outbound protection. Microsoft 365 also evaluates inbound mail and uses authentication signals to reduce spoofing. When a message claims to come from your domain but fails DMARC, Microsoft can classify it as suspicious, deliver it to the Junk Email folder, or reject it depending on policy and message context.
How Microsoft Handles Failed DMARC
For inbound messages, Microsoft 365 checks SPF, DKIM, and DMARC alignment. If a message fails authentication and appears to impersonate your organization, it may be treated as spoofed content. Depending on your anti-phishing settings and Microsoft’s filtering logic, the message can be:
- Delivered to the Junk Email folder
- Quarantined
- Rejected outright
This behavior helps protect employees and customers from phishing campaigns that misuse your domain name.
Monitoring and Reporting
After you setup dmarc record office 365, monitor aggregate reports from the rua mailbox regularly. These reports show who is sending mail on your behalf, which sources pass or fail, and where authentication problems occur. They are the key to moving from p=none to stronger enforcement without breaking legitimate delivery.
Best Practices for Office 365 DMARC Deployment
To get the most value from DMARC in Microsoft 365, follow these best practices:
Start in Monitoring Mode
Use p=none first, especially if your domain sends email from multiple platforms. This allows you to identify all legitimate senders before enforcing a stricter policy.
Align SPF and DKIM
DMARC passes when either SPF or DKIM passes and aligns with the visible From domain. In practice, DKIM is often the most reliable alignment mechanism for Office 365 because forwarding and relay services can break SPF.
Review Third-Party Senders
If tools like Mailchimp, Zendesk, Salesforce, or HR platforms send mail using your domain, they must be authenticated properly. Add them to SPF where appropriate and ensure they sign with DKIM.
Move Toward Enforcement
After you understand your traffic and resolve any unknown sources, increase enforcement from none to quarantine, and eventually to reject. This is how you mature your email security posture over time.
Keep Reports Organized
DMARC aggregate reports can be noisy. Use a dedicated mailbox or a reporting platform to analyze them efficiently. This makes it easier to spot unauthorized sources and configuration issues.
FAQ
Question: Does Office 365 automatically configure DMARC for my domain?
Answer: No. While Microsoft enables default DMARC checks on inbound mail, you must manually generate and publish your own DMARC record in DNS to protect outbound mail.
Question: What happens if SPF or DKIM is not aligned in Office 365?
Answer: If both fail alignment, the message fails DMARC validation. Office 365 will follow your DMARC policy (none, quarantine, or reject) to handle the email.








