What Are onmicrosoft.com and mail.onmicrosoft.com Addresses in Microsoft 365?
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.

- 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 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.
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).
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.
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.
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.

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.

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.




