Microsoft 365
How to authorize Microsoft 365 (Exchange Online) for SPF and DKIM.
SPF
Microsoft's SPF include is include:spf.protection.outlook.com.
- If SentraDMARC hosts your SPF, do not edit the record at your DNS host. Add Microsoft 365 on the SPF page, or press Add to your SPF on the Microsoft sender card on the DMARC page.
- If you manage SPF yourself, add the include to your existing record, before its
~allor-all.
DKIM
Microsoft 365 signs with two selectors, selector1 and selector2, and gives you a CNAME target for each. Microsoft rotates its own keys behind those targets, so once they are in place nothing needs changing on your side.
- Open the Microsoft Defender portal and go to Email & collaboration → Policies & rules → Threat policies → Email authentication settings → DKIM. Select your domain.
- Microsoft shows a CNAME target for each selector. Copy the exact value the portal shows. Older tenants get targets like
selector1-example-com._domainkey.<tenant>.onmicrosoft.com; newer domains get targets underdkim.mail.microsoft. Do not build the value by hand. - If SentraDMARC hosts your DKIM: on the DKIM page, choose the Microsoft 365 preset, paste both values, and publish. Then add the two CNAMEs the page shows, at
selector1._domainkeyandselector2._domainkeyon your domain. - If you manage DKIM yourself: add the two CNAMEs pointing straight at Microsoft's targets.
- Back in the Defender portal, turn on Sign messages for this domain with DKIM signatures. If the switch refuses, the CNAMEs are not resolving yet; wait for them and try again.