logo
search
Exchange Connection Problems

What Are onmicrosoft.com and mail.onmicrosoft.com Addresses in Microsoft 365?

Elise WilliamsElise Williams Oct 7, 2026 869 views

Question details

Administrators need to understand the roles of the default onmicrosoft.com and mail.onmicrosoft.com domains, and the potential impact of swapping these addresses between incorrectly created users.

Understanding onmicrosoft.com and mail.onmicrosoft.com Addresses in Microsoft 365
Product
Microsoft Exchange Online
Device & OS
not provided
Scenario
An accounts team is attempting to correct incorrectly assigned user accounts by swapping their default tenant email details.
Observed behavior
Two users have each other's onmicrosoft.com email addresses, raising concerns about the negative impacts on system routing, sign-in aliases, and synchronization if the addresses are manually switched.
Before you start

Before making any modifications to User Principal Names (UPNs) or proxy addresses, ensure you have Global Administrator privileges and have reviewed the active directory synchronization settings in the Microsoft Entra admin center.

Solution 1Recommended

Evaluate and Manage Default Microsoft 365 Routing Domains

Understand the function of the default tenant routing domains and use administrative centers to carefully review account details instead of directly swapping them.

The tenant.onmicrosoft.com domain is the default domain used by Microsoft 365 for tenant identities, system-related addresses, and internal routing. The mail.onmicrosoft.com domain serves specifically as an Exchange Online routing domain.

Administrators should never swap these addresses between users without comprehensive planning. Modifying these default routing addresses can severely impact sign-in names, mail routing rules, proxy aliases, SharePoint or OneDrive shared links, third-party applications, and directory synchronization (DirSync).

1
Review Current UPNs in Microsoft Entra ID

Log in to the Microsoft Entra admin center. Navigate to 'Identity' > 'Users' > 'All users'. Search for the affected accounts and review their User Principal Names and proxy addresses to map out the current configuration.

2
Inspect Exchange Routing Aliases

Open the Exchange admin center. Go to 'Recipients' > 'Mailboxes' and select the impacted users. Under the 'Email addresses' tab, check the primary and secondary routing addresses (SMTP and smtp) to see how the mail.onmicrosoft.com addresses are currently bound.

3
Recreate or Rename Accounts Securely

Rather than performing a direct swap of the onmicrosoft.com aliases, the safest administrative approach is to back up the user data, remove the incorrect routing aliases, and recreate the user profiles correctly, or temporarily assign a custom domain to avoid routing conflicts during the transition.

Evaluate and Manage Default Microsoft 365 Routing Domains
Adding a Custom Domain: Organizations commonly add a custom domain (e.g., contoso.com) for public email. While you can change the primary email to this custom domain, the original onmicrosoft.com address is retained in the background for essential system routing.
Free Microsoft Office alternative

Looking for a Lightweight Office Suite Alternative?

While managing Exchange Online routing domains requires specialized administrative tools, handling your daily document workflows shouldn't be complicated. WPS Office provides a free, fast, and highly compatible alternative to Microsoft Office for creating and editing documents, spreadsheets, and presentations.

Fully compatible with Microsoft Office formats including .docx, .xlsx, and .pptxLightweight installation that runs smoothly on almost any device or operating systemFamiliar tabbed interface ensuring seamless migration with zero learning curveBuilt-in advanced PDF editing, conversion, and merging tools at no extra cost
microsoft office alternative - wps office

Frequently Asked Questions

Can I completely delete the default onmicrosoft.com domain from my tenant?

No, the initial onmicrosoft.com domain created when you set up your Microsoft 365 tenant cannot be renamed or removed. It remains permanently tied to your tenant to handle backend system routing and identity management.

What happens to OneDrive links if I change a user's onmicrosoft.com UPN?

Changing a User Principal Name (UPN) or primary email address updates the user's SharePoint and OneDrive URLs. This change can break previously shared links to files and folders, requiring the user to generate and share new links after the system synchronization is complete.

Why does my tenant have both onmicrosoft.com and mail.onmicrosoft.com?

The onmicrosoft.com domain acts as the primary default identity for the entire tenant. The mail.onmicrosoft.com domain is automatically generated by Exchange Online specifically to manage and route email traffic, particularly useful in hybrid environments syncing with on-premises servers.