Fix Microsoft 365 External Out of Office Replies Sending from onmicrosoft.com Domain
Question details
Users migrating from Exchange 2010 to Microsoft 365 in a hybrid setup are experiencing an issue where external automatic out-of-office replies use the default onmicrosoft.com routing address instead of the primary custom domain.

- Product
- Microsoft 365 (Exchange Online)
- Device & OS
- not provided
- Scenario
- Configuring automatic out-of-office replies for mailboxes migrated to a hybrid Exchange environment.
- Observed behavior
- External automatic replies are sent from the tenant's onmicrosoft.com domain, even though normal email delivery and internal automatic replies correctly use the primary custom domain.
Verify that your organization's custom domain is set as the default domain in the Microsoft 365 admin center before modifying on-premises routing attributes.
Review Exchange Hybrid Configuration and Target Addresses
Check the target address values and accepted domain settings to ensure the custom domain is primarily used for external routing.
In hybrid deployments, the targetAddress attribute must align with your primary SMTP address. If the targetAddress points to the onmicrosoft.com alias as the primary identifier rather than just a routing alias, external out-of-office messages might default to this address.
Log in to the Exchange Admin Center, navigate to Mail flow > Accepted domains, and confirm your organization's custom domain is set as the Default domain.
Open the on-premises Exchange Management Shell and verify the targetAddress property for the affected users to ensure it points to the correct custom domain SMTP address.
Ensure that your on-premises email address policies stamp the correct primary SMTP address on objects before they are synchronized to Exchange Online via Azure AD Connect.

Looking for a Hassle-Free Office Suite? Try WPS Office
While complex Exchange server setups require extensive IT administration, your daily document work shouldn't. WPS Office provides a free, lightweight, and highly compatible alternative to Microsoft Office, featuring an intuitive interface that makes switching seamless.
- 1. Download WPS Office: Visit the official WPS Office website and download the free installer tailored for your operating system.
- 2. Install the Software: Run the installer package and follow the brief on-screen instructions to complete the setup process.
- 3. Open and Create: Launch WPS Office to instantly start creating, editing, and sharing documents with full Microsoft Office format compatibility.

Frequently Asked Questions
Why do internal out-of-office replies work but external ones use onmicrosoft.com?
Internal replies often rely on direct Active Directory lookups and primary SMTP addresses within the tenant, while external replies rely on the remote routing address (targetAddress) configured during the hybrid migration process, which may be defaulting to the onmicrosoft.com alias.
Can I fix the onmicrosoft.com reply issue directly from the Microsoft 365 portal?
In a standard hybrid environment, the source of authority is the on-premises Active Directory. Therefore, you typically need to fix attributes like the targetAddress on your local Exchange server and wait for Azure AD Connect to synchronize the changes to the Microsoft 365 cloud portal.
Will changing the default accepted domain affect my current email delivery?
Setting your custom domain as the default accepted domain ensures new mailboxes get the correct primary address, but it won't disrupt existing email routing as long as the necessary secondary aliases (including the default tenant onmicrosoft.com routing address) remain attached to the mailboxes.




