Forum Discussion
Exchange Online - primary SMTP does not update?
- Mar 06, 2019
Generally speaking, you shouldn't be managing @onmicrosoft.com addresses from on-premises. For the scenario at hand, you can "override" the sync using the following cmdlet:
Set-Mailbox user@domain.com -WindowsEmailAddress user@domain.onmicrosoft.com
This will set user@domain.onmicrosoft.com as the primary SMTP, regardless whether the user is synced or not.
Generally speaking, you shouldn't be managing @onmicrosoft.com addresses from on-premises. For the scenario at hand, you can "override" the sync using the following cmdlet:
Set-Mailbox user@domain.com -WindowsEmailAddress user@domain.onmicrosoft.com
This will set user@domain.onmicrosoft.com as the primary SMTP, regardless whether the user is synced or not.
- jbostoenMar 06, 2019Copper Contributor
Thanks. I actually just followed the logic for non-onmicrosoft.com addresses; what's the explanation for this situation where it shouldn't be accomplished with editing proxyAddresses when using AADConnect (hybrid situation)?
Also, how to remove the addresses still present in Exchange Online but NOT in AD on-prem? Deleting them through the ECP is impossible 'since they are synced'.
- VasilMichevMar 06, 2019MVP
You cant remove them, unless you stop DirSync. Or delete/recrate the object :)
- jbostoenMar 06, 2019Copper Contributor
Thanks, the primary SMTP issue is solved. But I'm curious about "why" though. It doesn't seem to make a lot of sense, compared to managing proxyAddresses in the on-prem Active Directory.