Exchange Connection Problems

Fix Mailbox Address Changing to onmicrosoft.com Automatically

Nimra MalikNimra Malik Oct 10, 2026 868 views

Question details

Users in a Microsoft 365 hybrid environment experience their primary custom-domain email address unexpectedly reverting to the default tenant onmicrosoft.com address.

How to Fix Mailbox Address Automatically Changing to onmicrosoft.com
Product
Microsoft Exchange Hybrid
Device & OS
not provided
Scenario
Managing user mailboxes and directory synchronization in a Microsoft 365 and Azure AD Connect environment.
Observed behavior
The custom-domain proxy address is removed or downgraded, leaving the onmicrosoft.com address as the primary SMTP address. This is often triggered by directory synchronization processes, MFA resets, or licensing changes.
Before you start

Ensure you have Active Directory Domain Services (AD DS) Administrator privileges and access to the Azure AD Connect server to modify on-premises synchronization attributes.

Solution 1Recommended

Correct the proxyAddresses Attribute in Local Active Directory

The most common cause of this issue is an incorrectly formatted proxyAddresses attribute being synced from your local AD to Azure AD.

In a hybrid environment, the local Active Directory acts as the source of truth for user attributes. Azure AD Connect relies on specific case-sensitive prefixes to differentiate between primary email addresses and aliases.

1
Open Active Directory Users and Computers

Launch 'Active Directory Users and Computers' (ADUC) on your domain controller.

2
Enable Advanced Features

Click on the 'View' menu at the top and ensure 'Advanced Features' is checked.

3
Access the Attribute Editor

Right-click the affected user account, select 'Properties', and navigate to the 'Attribute Editor' tab.

4
Modify proxyAddresses

Locate the `proxyAddresses` attribute and click 'Edit'. Ensure the primary custom domain address starts with an uppercase prefix (e.g., `SMTP:user@yourdomain.com`).

5
Verify Aliases

Ensure all secondary addresses or aliases start with a lowercase prefix (e.g., `smtp:user@yourtenant.onmicrosoft.com`). Apply the changes and run a manual Azure AD Connect sync.

Correct the proxyAddresses Attribute in Local Active Directory
Format Verification: Correctly formatting the SMTP prefix ensures Azure AD automatically recognizes your custom domain as the primary email address during the next synchronization cycle.
Free Microsoft Office alternative

Manage Documents Seamlessly with WPS Office

While resolving complex Exchange Hybrid synchronization issues requires specialized Microsoft administrative tools, managing your daily documents shouldn't be complicated. WPS Office provides a lightweight, highly compatible alternative to Microsoft Office, enabling you to open, edit, and save files locally without relying on cloud synchronization.

  1. 1. Download the Installer: Visit the official WPS Office website and click on 'Free Download'.
  2. 2. Install WPS Office: Run the downloaded installer and follow the simple on-screen instructions to complete the setup.
  3. 3. Open Your Files: Open your existing Microsoft Word, Excel, or PowerPoint files directly in WPS Office for immediate editing.
Fully compatible with Microsoft Office formats including .docx, .xlsx, and .pptx.Free, lightweight design that requires minimal system resources and disk space.Familiar user interface ensuring a seamless migration with a zero learning curve.Integrated PDF editing tools combined with powerful Word, Excel, and Presentation applications.
microsoft office alternative - wps office

Frequently Asked Questions

Why is the uppercase SMTP prefix important in the proxyAddresses attribute?

In Active Directory, the uppercase `SMTP:` prefix designates the primary email address for a user. Lowercase `smtp:` prefixes are used for secondary aliases. If the primary is missing or incorrectly capitalized, Microsoft 365 defaults to the standard onmicrosoft.com routing address.

Can assigning a new license temporarily change my primary email address?

Yes, in certain hybrid environments, backend provisioning processes triggered by self-service license signups or MFA changes can temporarily overwrite the proxy address back to the default tenant domain before the next directory sync completes.

How do I force an Azure AD Connect synchronization after fixing the proxy address?

You can force a delta sync by opening PowerShell on your Azure AD Connect server as an administrator and running the command `Start-ADSyncSyncCycle -PolicyType Delta`. This will push your local Active Directory changes to Microsoft 365 immediately.