How do I set up SPF, DKIM and DMARC for Microsoft 365?
The main steps to set up SPF, DKIM and DMARC for Microsoft 365, from its documentation: publish the SPF record, create the DKIM keys in the Defender portal, publish the two DKIM CNAME records, turn on DKIM signing and publish DMARC, starting with p=none. Checked October 22, 2026.Last checked
Where this comes from
- Publish the SPF record
learn.microsoft.com/en-us/defender-office-365/email-authentication-spf-configure · read 2026-10-22 - Create the DKIM keys in the Defender portal, Publish the two DKIM CNAME records and Turn on DKIM signing
learn.microsoft.com/en-us/defender-office-365/email-authentication-dkim-configure · read 2026-10-22 - Publish DMARC, starting with p=none
learn.microsoft.com/en-us/defender-office-365/email-authentication-dmarc-configure · read 2026-10-22
The steps, in order
| Name | What the documentation says | Source |
|---|---|---|
| 1. Publish the SPF record | “Instead, you create the SPF TXT record at your domain registrar or DNS hosting service (often the same company)” | learn.microsoft.com/en-us/defender-office-365/email-authentication-spf-configure · read 2026-10-22 |
| 2. Create the DKIM keys in the Defender portal | “On the DKIM tab, in the row for the custom domain or subdomain entry, try to slide the Toggle value from Disabled to Enabled” | learn.microsoft.com/en-us/defender-office-365/email-authentication-dkim-configure · read 2026-10-22 |
| 3. Publish the two DKIM CNAME records | “In another browser tab or window, go to the domain registrar for the domain, and then create the two CNAME records using the information from the previous step” | learn.microsoft.com/en-us/defender-office-365/email-authentication-dkim-configure · read 2026-10-22 |
| 4. Turn on DKIM signing | “After a while, return to the domain details flyout you left open in Step 6, and then select the Sign messages for this domain with DKIM signatures toggle” | learn.microsoft.com/en-us/defender-office-365/email-authentication-dkim-configure · read 2026-10-22 |
| 5. Publish DMARC, starting with p=none | “Start with a DMARC policy of p=none and monitor the results for the domain” | learn.microsoft.com/en-us/defender-office-365/email-authentication-dmarc-configure · read 2026-10-22 |
Related questions
- How do I set up SPF, DKIM and DMARC for Brevo?
- How do I set up SPF, DKIM and DMARC for Fastmail?
- How do I set up SPF, DKIM and DMARC for Google Workspace?
- How do I set up SPF, DKIM and DMARC for HubSpot?
Microsoft 365 email authentication guide →
Built from public pages on the dates shown. Prices and features change, so check the source before you buy. Outlevo sells outbound software and is not affiliated with the companies named unless the page says so.