How to set up SPF, DKIM, and DMARC for Microsoft 365?
For Microsoft 365: add the SPF include, enable DKIM signing in the admin portal, and create a DMARC record. The whole setup takes about 15 minutes.
Detailed Answer
Complete guide to configuring email authentication for Microsoft 365 (formerly Office 365).
1. SPF Record Add this TXT record to your domain's DNS:
v=spf1 include:spf.protection.outlook.com -all
If you have other services, combine them:
v=spf1 include:spf.protection.outlook.com include:_spf.google.com -all
2. DKIM Setup
- Go to Microsoft 365 Admin Center → Settings → Email authentication → DKIM
- Select your domain
- Click "Enable" to start DKIM signing
- Add the CNAME records Microsoft provides:
selector1._domainkey → selector1-yourdomain-com._domainkey.yourtenant.onmicrosoft.com
selector2._domainkey → selector2-yourdomain-com._domainkey.yourtenant.onmicrosoft.com
- Wait for DNS propagation, then activate
3. DMARC Record
Add this TXT record at _dmarc.yourdomain.com:
v=DMARC1; p=quarantine; rua=mailto:[email protected]; fo=1
Start with p=none if you're unsure all email sources are configured.
Verification: Scan your domain at https://intodns.ai to verify all three are configured correctly. The scan checks Microsoft 365 DKIM selectors (selector1, selector2) automatically.
Common Microsoft 365 issues:
- DKIM CNAME records take up to 48 hours to propagate
- Default Microsoft signing uses onmicrosoft.com (not your domain)
- Multiple domains need separate DKIM configuration each
- Shared mailboxes use the primary domain's DKIM key
Generate records: https://intodns.ai/tools/spf-generator
Check your domain now
Use IntoDNS.ai to scan your domain and get instant email insights.
Scan Your DomainRelated Questions
What is SPF, DKIM, and DMARC?
SPF, DKIM, and DMARC are email authentication standards that verify sender identity and prevent email spoofing.
How to setup an SPF record?
Create a DNS TXT record at your root domain with format: v=spf1 include:_spf.google.com ~all
How to setup DMARC?
Add a DNS TXT record at _dmarc.yourdomain.com with policy: v=DMARC1; p=none; rua=mailto:[email protected]