What You Need to Configure
Microsoft 365 handles the delivery side of email authentication automatically for inbound mail. For outbound mail from your domain, you are responsible for three things:
- SPF — a TXT record that lists Microsoft's servers as authorized senders for your domain
- DKIM — a cryptographic signing key that Microsoft applies to outgoing messages; must be enabled in the Defender portal and DNS
- DMARC — a policy record that ties SPF and DKIM to your visible From address and requests aggregate reports
All three are needed for full DMARC alignment. SPF alone is not sufficient because it only checks the envelope sender, not the From header.
Step 1: Verify Your SPF Record
Your SPF record must include Microsoft's sending infrastructure. The required include mechanism is:
include:spf.protection.outlook.com
A minimal SPF record for a domain that only uses Microsoft 365 for email:
v=spf1 include:spf.protection.outlook.com -all
If you also use other services that send email from your domain (marketing platforms, CRMs, transactional email services), add their include: mechanisms to the same record. Keep in mind the 10-lookup limit — see our guide on fixing SPF records that are too long if you have many senders.
Use our free SPF checker to verify your current record and count your lookups.
v=spf1. Having two SPF records always causes SPF PermError, regardless of their content.
Step 2: Enable DKIM Signing in Microsoft 365
Microsoft 365 can sign outgoing messages with your domain's DKIM key. This needs to be enabled in the Defender portal and requires two CNAME records in your DNS.
Enable DKIM in the Defender Portal
- Go to security.microsoft.com and sign in as a Global Admin or Exchange Admin.
- Navigate to Email & collaboration → Policies & rules → Threat policies → Email authentication settings.
- Select the DKIM tab.
- Select your domain from the list.
- Click Enable (or the toggle to enable DKIM signing).
- Microsoft will display two CNAME records you need to publish in your DNS.
Publish the CNAME Records
Microsoft provides two CNAME records in the form:
selector1._domainkey.yourdomain.com CNAME selector1-yourdomain-com._domainkey.youronmicrosoft.com
selector2._domainkey.yourdomain.com CNAME selector2-yourdomain-com._domainkey.youronmicrosoft.com
Publish both CNAMEs in your DNS. DKIM signing will not activate until the records are in place. Allow 24–48 hours for DNS propagation before confirming.
Step 3: Publish a DMARC Record
Once SPF and DKIM are in place, publish a DMARC record. Create a TXT record at _dmarc.yourdomain.com:
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com
Replace the rua address with a mailbox you control or a monitoring service address. Start with p=none — this collects reports without taking action on failing messages.
DMARC Record Tags Explained
p=none- Monitor only — no action taken on failing messages. Use this while you review your reports.
rua=- Where to send daily aggregate report XML files. Can be your own mailbox or a monitoring service.
adkim=r- Relaxed DKIM alignment (the default). Allows subdomain DKIM signing to satisfy DMARC.
aspf=r- Relaxed SPF alignment (the default). Allows subdomain envelope senders to satisfy DMARC.
Use our free DMARC checker to verify the record was published correctly.
Step 4: Monitor Your Reports
Once your DMARC record includes an rua address, major mail providers (Google, Microsoft, Yahoo, Apple) will send daily aggregate XML reports to that address. Each report contains:
- The sending IP addresses and their organization names
- SPF and DKIM pass/fail results for each IP
- The DMARC policy disposition (what actually happened to each message)
- Message volume per source
DMARC aggregate reports are XML files — not human-readable without a parser. Your DMARC Exposed parses them automatically and displays the results as a clear dashboard. You can see exactly which senders are passing, which are failing, and what changes are needed before you can safely enforce.
What to Look For
In the first few days of monitoring, check for:
- Your own Microsoft 365 traffic — should show SPF pass and DKIM pass. If not, re-check your SPF record and DKIM configuration.
- Third-party senders — marketing platforms, CRMs, transactional email services sending on behalf of your domain. These need to be in your SPF record and/or configured for DKIM before you enforce.
- Unexpected senders — IPs you don't recognize sending messages claiming to come from your domain. These may be spam or phishing attempts.
Step 5: Move to Enforcement
When you are confident that all legitimate senders are passing DMARC authentication, tighten your policy:
- Change
p=nonetop=quarantine— failing messages go to spam. Monitor for a few weeks. - Change
p=quarantinetop=reject— failing messages are blocked entirely. This is full DMARC enforcement.
Do not rush this. Moving to enforcement before all legitimate senders pass authentication will cause legitimate email to be blocked or sent to spam.
Monitor Your Microsoft 365 DMARC Reports
Your DMARC Exposed parses your aggregate reports automatically — showing SPF and DKIM results for every sender, so you know exactly what needs to be fixed before you enforce.
Start Your Free Trial Check Your DMARC RecordFrequently Asked Questions
Does Microsoft 365 set up SPF automatically?
No. You must manually publish an SPF TXT record at your domain root. The record must include include:spf.protection.outlook.com. If you use other services that send email from your domain, add their include: mechanisms to the same record. Never publish two SPF records — merge everything into one.
How do I enable DKIM in Microsoft 365?
Go to security.microsoft.com → Email & collaboration → Policies & rules → Threat policies → Email authentication settings → DKIM. Select your domain and enable DKIM signing. Publish the two CNAME records Microsoft provides. DKIM does not activate until the DNS records propagate (allow 24–48 hours).
What DMARC record should I use for Microsoft 365?
Start with v=DMARC1; p=none; rua=mailto:your-reporting-address. The rua can be a mailbox you control or a monitoring service. Use p=none until your reports confirm all legitimate senders are passing authentication, then move to p=quarantine and finally p=reject.
Why is my Microsoft 365 email failing DMARC?
The most common causes: DKIM signing is not enabled in the Defender portal, the CNAME records were not published, the SPF record does not include spf.protection.outlook.com, or a third-party service is sending email from your domain without proper authentication. Check your DMARC aggregate reports to identify which sending source is failing and why.