7 Practical Steps to Set MX Records for Office 365

Learn how to set MX records for Office 365 with 7 practical steps. Avoid routing issues, prevent email delivery failures, and ensure stable mail flow.

Rated 4.9 on Capterra

Generate more revenue with every email you send.

Start improving deliverability
Start improving deliverability

TL;DR:

  • Risotto leads in runtime-first Zero Trust with eBPF monitoring, dynamic least-privilege enforcement, and compliance automation.

  • Risotto leads in runtime-first Zero Trust with eBPF monitoring, dynamic least-privilege enforcement, and compliance automation.

  • Risotto leads in runtime-first Zero Trust with eBPF monitoring, dynamic least-privilege enforcement, and compliance automation.

Spam filters are ruthless. Beat them with MailReach.

Every email in spam is a wasted opportunity. Run a free spam test now and discover what’s stopping you from landing in the inbox.

Find and Fix Spam Issues Free
Find and Fix Spam Issues Free

Blacklisted? Find out if it’s hurting your deliverability.

Some blacklists don’t matter—but some can damage your sender reputation. Check your status now and see if it’s affecting your inbox placement.

Check Blacklist Status Free
Check Blacklist Status Free

All mailbox providers have their own technical requirements for domain setup and MX record configuration, and these details play a critical role in how email is routed and delivered. Microsoft 365 is no exception and requires specific MX records to be configured accurately for email to function as intended. 

Since MX records determine where incoming mail is delivered, even minor misconfigurations can lead to bounced messages, delayed delivery, or service interruptions. That’s why, in this blog, we walk through seven practical steps to help you configure MX records for Microsoft 365 correctly, ensuring stable mail flow and a smooth transition during setup or migration.

Understanding MX Records For Office 365

Each mailbox provider has a unique MX record setup, and Office 365 requires specific configurations. A clear understanding of these fundamentals helps prevent misconfigurations and ensures reliable email routing from day one.

Microsoft 365 MX Record Requirements

Microsoft 365 requires a specific MX record value that routes email through Microsoft’s mail protection infrastructure. The format typically looks like:

your-domain.mail.protection.outlook.com

This value is unique to each tenant. Reusing an MX record from another domain or environment is a common cause of email delivery issues.

Each MX record also includes a priority value. Microsoft often recommends priority 0, but many DNS providers use 10 or lower numbers by default. The key principle to remember is that the lowest number always has the highest priority. Issues commonly occur when a legacy provider’s MX record has a lower priority number than Microsoft or when multiple MX records are configured with the same priority.

Accurate routing is the foundational requirement for ensuring reliable email delivery. Inbox placement depends on what happens after routing, including authentication and reputation signals, which is why teams often validate mail flow alongside inbox placement behavior during a deliverability test.

Since routing issues are often diagnosed alongside inbox placement and authentication behavior, teams typically validate mail flow as part of a broader deliverability check. 

If you’re looking to understand how these signals are evaluated in practice, this guide on Email Deliverability Testing and how to do it right walks through the process step by step, helping you identify where delivery breaks down beyond just MX configuration.

Where To Find Your MX Records For Office 365?

The correct MX record for your domain is available in the Microsoft 365 admin center. After signing in, go to Settings, then Domains, select your domain, and open the DNS records section. Microsoft displays the exact MX value assigned to your tenant along with a recommended priority.

In more complex or hybrid environments, administrators often manage mail routing through Microsoft’s Exchange admin tools. These tools display the same MX record value shown in the Microsoft 365 admin center, since Microsoft assigns a single tenant-specific endpoint for incoming mail.

Pre-configuration Checklist

Before updating MX records, it is important to validate a few key prerequisites. These checks help minimize uncertainty during the change and enable faster recovery if mail flow does not function as expected.

Key Considerations Before DNS Updates

  • Verify domain ownership in Microsoft 365
    Ensure that the domain is fully verified in the admin center, as Microsoft does not accept email for unverified domains.
  • Document existing MX records
    Capture screenshots or export current DNS settings, including priority and TTL values. This provides a clear rollback reference.
  • Identify all email-dependent services
    List systems/tools that send or receive email for the domain, such as CRM platforms, helpdesk tools, and billing notifications. These often rely on specific routing or authentication records.
  • Schedule the changes during low traffic hours
    Make updates when fewer messages are in transit. This reduces the impact of propagation delays.
  • Decide on a rollback plan
    Keep the previous MX record at a lower priority temporarily so mail can be redirected if needed.
  • Back up critical emails if required
    MX record changes do not delete existing email. While backups are not mandatory, they provide an added layer of risk mitigation during complex or high-impact migrations.

7 Steps To Configure MX Records For Office 365

Configuring MX records for Office 365 requires precision and the correct sequence of actions. The following steps outline a clear, practical approach to ensure accurate setup and uninterrupted email flow.

Step 1: Verify Your Domain In Microsoft 365

Before you configure MX records for Office 365, Microsoft needs to confirm that you control the domain. This verification step is required before any routing changes take effect. It does not alter mail flow or affect existing messages.

Verification is done inside the Microsoft 365 admin center. After signing in, open domain management and add the domain you plan to use for email. Microsoft will guide you through a short verification process tied to your DNS.

The most common method uses a TXT record. Microsoft generates a unique value that you publish at your DNS provider. Once that record is visible, Microsoft checks for it to confirm ownership. This check is passive. It does not redirect email or interrupt delivery.

Most verification failures come from simple issues:

  • The TXT record is added under the wrong hostname
  • The value is copied incorrectly or truncated
  • An older verification record is still present

Correcting the record and allowing time for DNS propagation resolves most cases. Verification often completes within 15 minutes, but some DNS providers can take up to 72 hours. 

Step 2: Locate Your Current MX Records

Before introducing Microsoft 365 into your DNS, you need a clear snapshot of how email is routed today. This step is about visibility, not change.

Start at the DNS provider that controls your domain. This is usually the registrar where the domain was purchased or a DNS service the domain was later pointed to, such as GoDaddy, Namecheap, or Cloudflare. The interface differs, but the goal is always to access the zone file where mail records live.

Once inside DNS management, look only at MX records. Do not edit anything yet.

Capture the current setup:

  • Mail server destination
  • Priority value
  • TTL setting

A quick way to structure this is to document what you see in a simple table.

Record type Mail server Priority TTL
MX example.mailserver.com 10 3600
MX backup.mailserver.com 20 3600

This snapshot matters more than most teams expect. Conflicts during Office 365 migrations usually come from old MX records that were never removed or from priority values that still favor a previous provider.

Step 3: Add The Microsoft 365 MX Record

Log in to the DNS provider that manages your domain and open the section where MX records are edited. Most providers label this as DNS management, zone settings, or mail records. The naming differs, but the destination is the same.

Add a new MX record using the values provided by Microsoft 365.

Setting Value
Record type MX
Priority 0 or the lowest available value
Points to <your-domain>.mail.protection.outlook.com
TTL Provider default, often 300 to 3600

Microsoft commonly recommends priority 0, but many DNS providers default to 10 or use different numbering conventions. What matters is ordering. The Microsoft 365 MX record must have the lowest number so it is tried first.

TTL settings are often misunderstood. Lower values like 300 or 600 seconds are fine during testing, but TTL does not control global propagation speed. It only affects how long resolvers cache the record. Leaving the provider default is usually sufficient.

Some DNS platforms introduce quirks that can cause subtle errors:

  • Certain providers require a trailing dot at the end of the MX value
  • Others automatically append your domain name
  • Priority may be labeled as preference instead

After saving the record, double-check the value for typos and formatting issues. A single missing character is enough to impact deliverability.

Step 4: Set The Correct Priority Value

MX records are evaluated based on priority. The rule is simple. Lower numbers are tried first. When multiple MX records exist, the one with the lowest value receives email before the others.

Microsoft often recommends using priority 0 for its MX record, but that is not a strict requirement. Some registrars default to 5 or 10, and others do not allow 0 at all. What matters is not the number itself, but that Microsoft’s MX record has the lowest priority value among all active MX records for the domain.

If the priority is not set correctly, incoming email may continue routing to the previous provider even though the Microsoft 365 record exists. This is why migrations sometimes look successful on the surface while messages still arrive in the old system.

It is normal to have more than one MX record. Higher priority values are commonly used for fallback routing, and in some environments, multiple MX records intentionally share the same priority for load balancing. Problems only appear when equal priorities are added unintentionally, without a clear routing plan.

During staged migrations or hybrid setups, it is often safer to keep the old MX record temporarily. In that case, assign it a higher priority number so it only receives mail if Microsoft’s servers are unavailable.

Important Note: Avoid creating multiple MX records with the same priority unless you explicitly intend to use load balancing or parallel routing. Accidental equal priorities make mail flow harder to predict and troubleshoot.

Step 5: Remove Old MX Records

Once Microsoft 365 is receiving email successfully, the next consideration is how to manage the legacy provider’s MX record. The right choice depends on how confident you are in the current mail flow and whether the environment is simple or hybrid.

Situation Recommended action Why it works
Standard migration with stable delivery Lower the old MX record priority Keeps a fallback available without affecting normal routing
Early validation phase Keep the old MX at a higher priority temporarily Allows quick rollback if routing issues appear
Confirmed stable delivery Delete the old MX record Removes ambiguity and prevents mail from reaching an unused system
Hybrid or staged migration Keep both MX records intentionally Supports parallel routing or controlled cutover

If multiple SPF records exist, they must be merged into a single record. Leaving more than one SPF record causes authentication to fail. After updating the record, it is worth validating the final result using an SPF checker to confirm the record resolves correctly and includes all required senders.

DKIM Records

DKIM verifies that email content has not been altered during delivery. Microsoft 365 uses DKIM through CNAME records, not TXT records.

Requirement What to add
DKIM selectors Two CNAME records
Selector names selector1._domainkey and selector2._domainkey
Target values Provided inside the Microsoft 365 admin center

The selector values are generated by Microsoft and are unique to each tenant. Both CNAME records must be added before DKIM can be enabled successfully. Once published, a DKIM checker can help confirm that the selectors resolve correctly and are visible to receiving mail servers.

DMARC Records

DMARC ties SPF and DKIM together and tells receiving servers how to handle authentication failures.

Element Example value
Policy p=none
Reporting rua=mailto:dmarc@yourdomain.com

A basic monitoring policy is recommended during migrations. It provides visibility into authentication results without affecting delivery while mail flow stabilizes.

Step 7: Validate And Confirm Propagation

After updating MX records, the final step is confirming that the change has propagated and that email is flowing into Microsoft 365 as expected. DNS propagation is not instant. Depending on the DNS provider and previous TTL values, updates can become visible anywhere from a few minutes to 72 hours after the change.

Propagation also does not happen uniformly. Different DNS resolvers may return different results during the transition, which is why validation should include both DNS lookups and real mail flow testing.

To check propagation status, use a combination of tools:

Method What it shows
MXToolbox lookup Public view of which MX records are currently visible
DNS checker tools Propagation status across multiple geographic regions
nslookup command MX records are visible to a specific DNS resolver or network

A successful DNS check shows the Microsoft 365 MX record with the correct mail.protection.outlook.com value and the expected priority. If older MX records still appear, propagation is still in progress, or the update has not been applied correctly.

DNS confirmation alone is not sufficient. Always validate actual mail flow.

Test What to confirm
External test email The message is delivered to a Microsoft 365 mailbox
Message headers Routing shows Microsoft infrastructure handling delivery
Old provider inbox No new messages arrive after the change

Once test emails arrive consistently and headers confirm Microsoft handled delivery, propagation is effectively complete for real-world sending.

Post-configuration: Ensuring Deliverability

MX records control routing. Deliverability determines whether the email is accepted and placed correctly once it arrives. After configuration, the focus should shift to validation and monitoring.

Confirm Email Deliverability

Send test emails from your domain to a mix of inbox providers:

  • Gmail
  • Outlook.com
  • Yahoo
  • At least one corporate domain

Check the inbox and spam folders, then review message headers to confirm SPF, DKIM, and DMARC are passing. Failures at this stage usually point to authentication or DNS issues rather than content.

Run Deliverability Checks

Use Microsoft’s Message Header Analyzer to review how messages were processed. Check blacklist status to rule out inherited or historical reputation issues.

Inbox placement testing adds deeper visibility. An inbox placement test shows where messages land across providers and surfaces authentication or reputation problems early. MailReach’s spam test tool helps validate placement signals in one place instead of relying on assumptions.

Monitor The First 48 Hours

Monitor deliverability closely after the change:

  • Review Office 365 message trace
  • Monitor bounced or deferred messages
  • Check mail queues in the Exchange admin center

Many issues appear quickly, even if they resolve on their own. Documenting anomalies helps identify patterns.

The Role Of Email Warm-up

Email warm-up is not required simply because the MX records changed. In scenarios where sending patterns do change, such as launching new mailboxes or increasing volume, a structured warm-up process helps rebuild consistent reputation signals.

MailReach Email Warmup is designed for this phase, automating gradual volume ramp-up while generating real engagement signals that inbox providers look for. This allows teams to stabilize inbox placement before returning to full-scale sending, without manually managing warm-up activity or risking sudden reputation drops.

Inbox providers evaluate reputation based on consistency, volume, and engagement. When those signals reset or change significantly, a controlled ramp-up helps stabilize placement before full sending resumes.

Protect Deliverability After Your Office 365 Migration

Setting up MX records for Office 365 is a precision task. The seven steps in this guide are designed to help you route email correctly, avoid DNS conflicts, and validate delivery before the migration is considered complete.

That said, MX configuration is only the starting point. Inbox providers continue evaluating sender reputation after the change, based on authentication, consistency, and how sending patterns evolve. This is where many migrations quietly run into deliverability issues, even when the technical setup looks correct.

When an Office 365 migration coincides with new domains, new mailboxes, or changes in sending volume, sender reputation often needs time to stabilize. A controlled warm-up, combined with real visibility into inbox placement, reduces the risk of sudden filtering or engagement drops.

MailReach helps teams protect deliverability after migration by rebuilding sender trust gradually, monitoring inbox placement in real time, and scaling safely as sending resumes. To safeguard deliverability beyond day one, you can validate real-world delivery using an inbox placement test or stabilize reputation with a structured email warmup as your Microsoft 365 sending ramps up.

Don’t let spam filters decide your campaign’s success.

Take back control of your email strategy. Find the gaps, fix the issues, and land where it matters.

Make sure your emails reach the inbox.

A blacklist alone won’t always tank your deliverability, but it’s worth checking. Scan for issues, run a spam test, and get clear next steps.

Table of Contents:

Rated 4.9 on Capterra
Stop missing out on revenue because of bad deliverability.

Poor domain setup or email issues could be keeping you out of inboxes. Test your email health and fix it in minutes.

Rated 4.9 on Capterra
Warmup isn’t optional—it’s essential.

Without the right warmup, your best campaigns are of no use. You can start by first testing your inbox placement and begin improving it today.

Start using MailReach now and enjoy 20% OFF for the first month of our Pro Plan.
Only for B2B cold outreach activity
Rated 4.9 on Capterra
Landing in spam costs more than you think.

If spam filters are keeping you out, you're missing leads, deals, and revenue. Test your placement and take control.

Rated 4.9 on Capterra
Are blacklists keeping your emails out of the inbox?

Just because you’re listed doesn’t mean your deliverability is doomed. Run a spam test to see if your emails are actually landing—or getting blocked.

Rated 4.9 on Capterra
Think your cold outreach isn’t working? Let’s check.

Great emails need great deliverability. Test your placement now and make sure your emails are landing where they should.

Rated 4.9 on Capterra
Small, easily fixable issues could be the reason why your emails land in spam.

Get a health check in minutes and start improving today. With MailReach!

Email Best Practices
Email Best Practices
All Blogs
7 Practical Steps to Set MX Records for Office 365

7 Practical Steps to Set MX Records for Office 365

Email Best Practices
Email Best Practices
All Blogs
5 Steps to Setup MX Record Google Workspace in 2026

5 Steps to Setup MX Record Google Workspace in 2026

Email Best Practices
Email Best Practices
All Blogs
How to Improve Inbox Placement for B2B Outreach

How to Improve Inbox Placement for B2B Outreach

Email Best Practices
Email Best Practices
All Blogs
GDPR Email Compliance Checklist for 2026

GDPR Email Compliance Checklist for 2026

Email Best Practices
Email Best Practices
All Blogs
Google Workspace Email Sending Limits for 2026: A Practical Guide for Cold Outreach Teams

Google Workspace Email Sending Limits for 2026: A Practical Guide for Cold Outreach Teams

Email Best Practices
Email Best Practices
All Blogs
Top 4 Inbox Ally Alternatives in 2026

Top 4 Inbox Ally Alternatives in 2026

Stay one step ahead of even the most advanced spam filters.

Ensure success for your B2B cold outreach campaigns with MailReach’s spam score checker and email warmup tool.