Set up DKIM and SPF for Microsoft 365
Make email sent through Microsoft 365 pass DMARC for your domain.
DKIM
- Open the Microsoft Defender portal → Email & collaboration → Policies & rules → Threat policies → DKIM.
- Select yourdomain.com. It shows two CNAME records (selector1 and selector2) pointing at onmicrosoft.com.
- Create both CNAME records at selector1._domainkey.yourdomain.com and selector2._domainkey.yourdomain.com.
- Return to the DKIM page and switch Sign messages for this domain to Enabled.
SPF
Add include:spf.protection.outlook.com to the SPF record on yourdomain.com. If you have no SPF record yet, publish:
v=spf1 include:spf.protection.outlook.com -all
A domain may have only one SPF record; merge this into an existing one rather than adding a second. Check the result with the SPF checker.
Microsoft 365's own documentation
Check it worked
DNS changes take up to an hour. Then send a test message to a Gmail address, open it, choose Show original, and look for dkim=pass with header.d=yourdomain.com. Or just watch your SpoofLock dashboard: the sender turns green once reports show it passing.
Not sure which services send as your domain?
DMARC reports list every one of them. SpoofLock collects the reports, names the services and shows these instructions next to each one that is not passing yet. One domain free.
Start free