Microsoft 365 doesn't publish one MX host for everyone. Each domain gets its own, built from the domain name. That makes copying a neighbour's record a classic mistake. This page shows the format, the newer DNSSEC endpoint, and the authentication records, checked against Microsoft's docs and live DNS on 2026-11-24.
TL;DR
- MX:
<domain-key>.mail.protection.outlook.com, priority "the highest value available, typically 0", TTL3600(Microsoft 365 admin docs, checked 2026-11-24). - DNSSEC: domains that enable it move to a host like
contosotest-com.o-v1.mx.microsoft. Microsoft has "no plans" to signmail.protection.outlook.com. - SPF:
v=spf1 include:spf.protection.outlook.com -all. DKIM: two CNAMEs,selector1._domainkeyandselector2._domainkey.
The exact Microsoft 365 MX record
| Type | Host / name | Value (points to) | Priority | TTL |
|---|---|---|---|---|
| MX | @ | <domain-key>.mail.protection.outlook.com (copy from the admin center) | 0 (highest available) | 3600 |
| CNAME | autodiscover | The value the admin center shows (autodiscover.outlook.com in live DNS) | - | 3600 |
contoso.com. 3600 IN MX 0 contoso-com.mail.protection.outlook.com.
The domain key (Microsoft's docs call it the MX token) is usually your domain with dots turned into dashes: Microsoft's own example is contosotest-com for contosotest.com, and microsoft.com itself publishes microsoft-com.mail.protection.outlook.com. But in live DNS some long-standing tenants have tokens that don't follow the pattern, so copy the value instead of building it.
Microsoft notes that Exchange Online only supports TTL values below 6 hours (21,600 seconds). Autodiscover is optional but "highly recommended", because it lets Outlook configure itself.
The DNSSEC endpoint: mx.microsoft
Microsoft built a DNSSEC-signed zone for Exchange Online. A domain that turns on inbound SMTP DANE with DNSSEC gets a new MX value in the form <MX token>.<subdomain>.mx.microsoft, for example contosotest-com.o-v1.mx.microsoft (Microsoft: how SMTP DANE works, checked 2026-11-24). The subdomain varies: in live DNS we saw o-v1, q-v1 and v-v1.
In an April 23, 2026 update, Microsoft said there are "no plans to enable DNSSEC on the mail flow domain mail.protection.outlook.com", that automatic provisioning of new domains under mx.microsoft was delayed, and that a DNSSEC wizard for the Exchange admin center was planned for Q3 2026 (Exchange Team Blog, checked 2026-11-24). Until your tenant hands you an mx.microsoft value, the mail.protection.outlook.com record is correct.
Microsoft's documented switch, in short:
- Lower the TTL of the current MX to the lowest your host allows (not below 30 seconds) and wait out the old TTL.
- Run
Enable-DnssecForVerifiedDomain -DomainName contoso.comin Exchange Online PowerShell. It returns the new MX value. - Add that value as a second MX record at priority 20, then test it with Microsoft's Remote Connectivity Analyzer inbound SMTP test.
- Move the old record to priority 30 and the new one to 0, then delete the record ending in
mail.protection.outlook.comand set the new record's TTL to 3,600 seconds.
If you publish an MTA-STS policy, set it to testing and add the new host before you switch, as Microsoft's guide warns.
How to set up the Microsoft 365 MX record
- Add users first. Microsoft says to add users and set up mailboxes for everyone on the domain before updating the MX record, so mail keeps flowing during the move.
- Copy your MX value. In the Microsoft 365 admin center, go to Settings, Domains, select the domain, then DNS records and Manage DNS. Copy the MX value shown for Exchange and Exchange Online Protection.
- Add the MX record. At your DNS host add an MX record: host
@, points to the value you copied, priority the highest available (typically0), TTL3600. - Deal with the old MX records. Remove MX records that point to your previous provider, or give them a higher number than the Microsoft 365 record. Lower numbers win.
- Add the supporting records. Add the autodiscover CNAME and the SPF TXT record, plus the two DKIM CNAMEs if you selected DKIM, then select Continue so the admin center verifies them.
If your registrar supports Domain Connect, the admin center can add these records for you and may offer to delete the old MX record. Add them by hand if you want to keep the old record during a staged move. Our MX change guide covers TTLs and rollback.
SPF, DKIM and DMARC for Microsoft 365
| Record | Type | Host | Value |
|---|---|---|---|
| SPF | TXT | @ | v=spf1 include:spf.protection.outlook.com -all |
| DKIM 1 | CNAME | selector1._domainkey | First DKIM value from the admin center |
| DKIM 2 | CNAME | selector2._domainkey | Second DKIM value from the admin center |
- SPF. If an SPF record exists, don't create another; Microsoft says to add its value to the current record so there is "a single SPF TXT record" covering both senders.
- DKIM. The CNAME targets come in two formats (Microsoft: DKIM for custom domains, checked 2026-11-24). Existing custom domains use
selector1-contoso-com._domainkey.contoso.onmicrosoft.com. Custom domains added since May 2025 get the newer format,selector1-contoso-com._domainkey.contoso.n-v1.dkim.mail.microsoft, where the letter before-v1varies. Copy both values from the admin center or fromGet-DkimSigningConfig, then enable signing on the DKIM tab of the Defender portal's Email authentication settings. Mail from your*.onmicrosoft.comdomain is signed automatically. - DMARC. Publish a TXT record at
_dmarc, starting withp=noneand a reporting address, then tighten. See Microsoft's DMARC guide and our explainer, What is DMARC?
How to check the Microsoft 365 MX record
Check yours with our MX lookup, or run:
$ dig MX contoso.com +short
0 contoso-com.mail.protection.outlook.com.
PS> Resolve-DnsName contoso.com -Type MX
You want one line, and it should match the admin center exactly. For a deeper test, Microsoft's Remote Connectivity Analyzer runs an inbound SMTP test against your domain. Use our authentication checker for SPF, DKIM and DMARC, and the header analyzer to see whether a received message passed.
Common Microsoft 365 MX mistakes
- Old MX at a lower number. If the previous host stays at 0 and Microsoft 365 is at 10, mail keeps going to the old host. Microsoft's own example: "priority 0 is higher than priority 10".
- Guessed MX value. A typo in the token, or a token copied from another domain, sends mail to a tenant that rejects it.
- TTL of a day or more. Exchange Online only supports TTLs under 6 hours.
- DKIM host with the domain appended twice. Enter
selector1._domainkey, not the full name, in panels that add the domain for you. - Switching MX before mailboxes exist. Mail for users who don't exist yet bounces with 550 5.1.1.
Microsoft 365 and list verification
Unlike Google Workspace, Microsoft 365 rejects unknown recipients by default. In Mail Exchange's checks of 779,784 unique business addresses across 200,799 domains (17 Oct to 22 Nov 2026, mostly B2B contact lists), 0.1% of the 51,853 Microsoft 365 domains where our catch-all test reached a verdict accepted mail for any address. More in Is Microsoft 365 a catch-all? and Outlook mailboxes.
Common questions
What is the MX record for Microsoft 365?
It is unique to your domain: a domain key followed by mail.protection.outlook.com, for example contoso-com.mail.protection.outlook.com. Copy the exact value from the Microsoft 365 admin center and set the priority to the highest available, typically 0, with a TTL of 3600.
What is mx.microsoft?
It is the newer DNSSEC-signed home for Exchange Online MX hosts. When you enable DNSSEC for a domain, Microsoft gives you an MX value like contosotest-com.o-v1.mx.microsoft. Microsoft says it has no plans to enable DNSSEC on mail.protection.outlook.com.
What is the SPF record for Microsoft 365?
v=spf1 include:spf.protection.outlook.com -all. If the domain already has an SPF record, add include:spf.protection.outlook.com to it so the domain keeps a single SPF record.
Can I guess my Microsoft 365 MX value from the domain name?
Often, but don't rely on it. Most domains follow the pattern of replacing dots with dashes, but some tokens differ, and DNSSEC hosts include a subdomain you can't predict. Always copy the value from the admin center.
What TTL should the Microsoft 365 MX record have?
Microsoft lists 3600 seconds (1 hour) and says Exchange Online only supports TTL values less than 6 hours (21,600 seconds).