Provider guide · updated 2026-09-03
Microsoft 365: SPF, DKIM and DMARC setup
Microsoft 365 uses one SPF include, two DKIM CNAME records that point into your tenant, and a DMARC record. DKIM signing is switched on in the Defender portal after the CNAMEs resolve.
SPF for Exchange Online
Exchange Online publishes its sending ranges under spf.protection.outlook.com. Add that include to the single SPF record on your domain. Microsoft documents this as the only include most tenants need for mail sent through Microsoft 365.
If you route outbound mail through a third-party gateway or send from other services, add their includes in the same record and keep total lookups under 10.
| Type | Name | Value |
|---|---|---|
| TXT | example.com | v=spf1 include:spf.protection.outlook.com -allMicrosoft's default guidance uses -all. Use ~all while you are still adding senders. |
DKIM: two CNAME records
Microsoft 365 rotates between two selectors, selector1 and selector2. Each is a CNAME on your domain that points to a record Microsoft hosts in your tenant. The target contains your domain with dots replaced by dashes, followed by your tenant's onmicrosoft.com name.
The exact targets are shown in the Microsoft Defender portal under Email authentication settings, DKIM. Copy them from there rather than constructing them by hand, since the initial domain name varies per tenant.
- Open the Microsoft Defender portal, go to Email and collaboration, Policies and rules, Threat policies, Email authentication settings, then the DKIM tab.
- Select the domain and copy the two CNAME records shown.
- Add both CNAMEs at your DNS host.
- After they resolve, return to the DKIM tab and turn on Sign messages for this domain with DKIM signatures.
| Type | Name | Value |
|---|---|---|
| CNAME | selector1._domainkey.example.com | selector1-example-com._domainkey.<tenant>.onmicrosoft.comReplace <tenant> with the initial domain shown in the Defender portal. |
| CNAME | selector2._domainkey.example.com | selector2-example-com._domainkey.<tenant>.onmicrosoft.com |
DMARC
Publish a DMARC record at _dmarc on your domain. Start with p=none and a rua address so you can see which sources fail before enforcing. Microsoft's guidance follows the same staged path: none, then quarantine, then reject.
| Type | Name | Value |
|---|---|---|
| TXT | _dmarc.example.com | v=DMARC1; p=none; rua=mailto:[email protected] |
Outlook.com sender requirements
Microsoft's Outlook postmaster policies require high-volume senders to Outlook.com, Hotmail and Live addresses to publish SPF, DKIM and DMARC. Messages that do not meet these requirements can be rejected or routed to junk.
Microsoft also expects valid reverse DNS, a functioning unsubscribe mechanism for marketing mail, and low complaint rates. Authentication is necessary but not sufficient for delivery to the inbox.
