May 31 2020
06:52 AM
- last edited on
Jan 14 2022
04:31 PM
by
TechCommunityAP
May 31 2020
06:52 AM
- last edited on
Jan 14 2022
04:31 PM
by
TechCommunityAP
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?
May 31 2020 07:57 AM
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.
May 31 2020 09:09 AM
@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.
May 31 2020 09:30 AM
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.
May 31 2020 09:56 AM
@PeterRising I will chech this on Tuesday.
Thanks!
Jun 02 2020 02:08 AM
@PeterRising I checked in Microsoft 365 admin center and Active Directory and the usernames are displayed correctly with the correct domain. The issue exists only in "Contacts" in Exchange Admin Center. Please check the attached screenshot.
What do you think, what could be the reason for that and how can I solve it?
Jun 02 2020 08:56 AM
Hi, so in your Exchange on-premises server, are the objects showing with the correct primary smtp email addresses?
Jun 03 2020 02:00 AM
Hi @PeterRising do you mean in Active Directory?
Please provide the path how to check this.
Thanks in advance.
Jun 03 2020 04:10 AM
Jun 03 2020 10:22 AM
@PeterRising There are 2 Exchange servers. Please check the screenshot.
The main problem is that, some on prem mail users are shown with wrong "external email address" in "Contacts" in Exchange Admin Center. The wrong email address is the secondary email address which ends with @domain.mail.onmicrosoft.com.
When trying to edit manually the external email address, it comes the following error message:
"The operation on mailbox failed because it's out of the current user's write scope.
The action ‘Set-MailUser’, ‘ExternalEmailAddress’, can’t be performed on the object because the object is being synchronized from your on-premises organization".
Sep 19 2020 02:43 PM
@AtanasM I'm with the Sam issue , did you get the solution ?
Sep 20 2020 09:32 AM
SolutionSep 25 2020 01:48 PM
@PeterRising Hello the problem is when the on-premise user is sync to cloud it gets the wrong external smtp address although the upn of the user is correct with the example@doamin.com
Sep 20 2020 09:32 AM
Solution
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.