Forum Discussion

AtanasM's avatar
AtanasM
Iron Contributor
May 31, 2020
Solved

Some On Premise mailboxes are provided with wrong external email address in Office 365

In some OnPremise mailboxes, the associated “mail users” in O365 are provided with the wrong external email address.

The target address for mail users is set wrong by Azure AD Connect.

Our customer has a hybrid exchange configuration, set up with AzureAD Connect and the Hybrid Configruation Wizard (HCW).
All users with Onpremise-mailboxes are replicated from AD Connect as mail users to O365. Some mail users have the right external email-adresse set as ...@ourdomain.com (correct) and some mail users have the external email address set to ...@mytenant.mail.onmicrosoft.com (wrong).
Target email address for on Premise mailboxes isn't set.
Why does Azure AD Connect set the wrong target address?

  • Jjsilva AtanasM 

     

    Apologies, I lost track of this issue.  The reason that the email address could not be changed is the Source of authority is on-premises AD, not Azure AD.  To change this email address you would need to do so from the on-premises Exchange Admin Centre, not the Exchange Online one.

  • AtanasM 

     

    Hi, the users who are getting the .onmicrosoft addresses in O365 are most likely setup in on-premises AD with a domain.local UPN suffix as opposed to the routable domain name. You will need to set their UPN's in AD to have a suffix of yourdomain.com as opposed to yourdomain.local.  This should correct the issue for the affected users.

    • AtanasM's avatar
      AtanasM
      Iron Contributor

      PeterRising could you explain more precisely the phrase:

      "setup in on-premises AD with a domain.local UPN suffix as opposed to the routable domain name".

       

      Thanks inn advance.

      • AtanasM 

         

        In Active Directory Users and Computers, open one of the affected users and go to the Account tab.

         

        You will see that the UPN is set to username@domain.local.  Under the domain suffix part of the UPN, click the dropdown and select the actual email domain and the UPN should change to username@domain.com 

         

        If you don't see the domain in the dropdown, you may need to add it as an additional UPN suffix in Active Directory Domains and Trusts.  However, as you have said that some of your users are syncing correctly, I am guessing the domain will be available to you in the dropdown.

Resources