question

LoganBurt-5036 avatar image
0 Votes"
LoganBurt-5036 asked ·

Change primary SMTP and recipient name in Exchange hybrid

Forgive me, I'm sure this has been asked and answered in this forum, but I have no idea how to search within just this forum. Searches seem to be only across every forum and yield thousands of results. We have less than a quarter of our recipient mailboxes on O365 so far, and this hasn't come up until now. I assumed it would be straightforward, but it doesn't appear so. I have a user who has a primary SMTP that differs from her display name (it matches her AD account). It was set up that way before her mailbox was migrated to O365. She has requested that her primary SMTP address be changed to match her display name. Her AD account is MJones. Instead of Display Name: Mary Smith; SMTP: MJones@mycorp.com; smtp: msmith@mycorp.com she now wants Display Name: Mary Smith; SMTP: MSmith@mycorp.com; smtp: mjones@mycorp.com She also currently has smtp: mjones@mycorptenant.mail.onmicrosoft.com and smtp:mjones@mycorptenant.onmicrosoft.com In the Office 365 Admin Center, I have the check box available for setting a secondary email address as primary, but since this is a hybrid environment, I know I have to make such settings on prem and let them replicate. When I look at the O365 mailbox object in the on prem EAC, I do not see any way of setting any of the addresses as primary. How do I properly make this change? Am I overlooking something in on-prem EAC, do I use Set-RemoteMailbox, or do I edit AD? The other question I have is regarding the tenant SMTP addresses. Do I need to create additional secondary tenant SMTP addresses (mycorptenant.mail.onmicrosoft.com and mycorptenant.onmicrosoft.com in my example) to match the new primary SMTP address? Looking ahead, what is the proper way to change someone's name when for example a woman gets married (or divorced)? Thank you very much for your help with this.

office-exchange-hybrid-itpro
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

sabny21 avatar image
1 Vote"
sabny21 answered ·

First thing is we need to make sure we understand that the primary SMTP address and username, first name, last name are user attributes in AD. If you are running a hybrid environment with Azure AD Connect then all changes need to be made on-premise and then synced to Office 365/Azure AD.

To change the primary SMTP you can either use the EAC, and go to the mail addresses dialog box, or go to the Attribute editor in Active Directory Users and Computers, once you've enabled advanced view, under the view menu, and change the proxyAddress attribute to match what you need.

Please note that the caps SMTP is the primary or reply-as SMTP address and the lowercase smtp are additional aliases. The username, first name, last name etc can be changed from the regular Account Tab and User Info tab.

Hope this helps and let me know if you have any trouble with that.

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just small addition to @sabny21 . The reason you cannot see the option to set the new email as primary is that by default email address are created based on a policy. There is a tick box which if you uncheck you will be able to change the new primary SMTP even from EAC:

73164-image.png


1 Vote 1 ·
image.png (16.4 KiB)
LucasLiu-MSFT avatar image
0 Votes"
LucasLiu-MSFT answered ·

Hi @LoganBurt-5036 ,

Agree with above.

1.You could directly change the display name and primary emaild address of user mailbox in EAC in on-premises Exchange server.
2.You do not need to create a second tenant. According to the information you provide, you only need to modify the Display name and primary SMTP address for the user. After the change, the smtp address related to onmicrosoft.com of the mailbox will remain unchanged.

Below screenshots is a test in my lab environment, I changed display name from user3 to user3-1, and changed the primary email address from user3@mydomain.com to user3-1@mydomain.com. After AAD connect is synchronized, I can see that the primary SMTP address of the mailbox also has changed in Exchange online. After that, I can successfully send emails to this address, and the emails sent from the user's mailbox can also be successfully received by the recipient, and the displayed name and email address that I see are updated.
73267-image.png
73236-1.png
73266-3.png

In addition, please note the following points:
1.As mentioned above, please uncheck the “Automatically update email address…” before you change the primary SMTP address.
2.When the user logs in to the mailbox, the UPN address is used. It’s may be different from the primary SMTP address.
73281-4.png



If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




image.png (23.5 KiB)
1.png (24.7 KiB)
3.png (29.8 KiB)
4.png (14.7 KiB)
· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @LoganBurt-5036 ,
Do suggestions above help? If the issue has been resolved, please click “Accept as answer” to mark helpful reply as an answer, this will make answer searching in the forum easier and be beneficial to other community members as well.

Thanks for your understanding.



If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 Votes 0 ·
LoganBurt-5036 avatar image
0 Votes"
LoganBurt-5036 answered ·

Thank you very much sabny21 and especially michaelbartak for your clarification. As soon as I saw it I was kicking myself. I should have noticed that and remembered it myself.

Thank you LucasLiu for your clarification about the tenant address. May I ask some general clarification about these tenant addresses using my example? I understand that the tenant addresses route mail between the on premise Exchange and the O365 tenant, but I'm unclear on the relationship between the real address and the tenant address. Can I take from that that the tenant address needs to correspond with one of the smtp addresses of the mailbox, but not necessarily the primary SMTP address? So in my illustration, I will wind up with
Display Name: Mary Smith; SMTP: MSmith@mycorp.com; smtp: mjones@mycorp.com; smtp: mjones@mycorptenant.mail.onmicrosoft.com; smtp:mjones@mycorptenant.onmicrosoft.com

In this illustration, is smtp:mjones@mycorptenant.onmicrosoft.com valid because of the existence of smtp: mjones@mycorp.com? If so, if the address mjones@mycorp.com were to ever be removed, would I then need to create smtp: msmith@mycorptenant.mail.onmicrosoft.com and smtp:msmith@mycorptenant.onmicrosoft.com?

For that matter, do you know why there are two tenant domains, mycorptenant.mail.onmicrosoft.com and mycorptenant.onmicrosoft.com?

Thank you all again for your help.

· 2 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You need those tenant addresses in there as an identified that Office 365 uses when in a hybrid environment. You would basically only need the mail.onmicrosoft.com one to be there because of the hybrid configuration. In general that onmicrosoft one is used in the backend to identify your tenant and other aspects. The mail.onmicrosoft.com is used for mail routing in a hybrid environment.

0 Votes 0 ·

Hi @LoganBurt-5036 ,
Based on your description, I don’t think you need to modify these two addresses.
1. The Onmicrosoft.com domain is the default domain created for you when you register for Office 365 services. When you do not customize the added domain. Your Offcie 365 users will use this domain.
2. The Mail.onmicrosoft.com domain is an email address <domain.mail.onmicrosoft.com> automatically added to your mailbox when you run the hybrid deployment. This address will be used in Hybrid environment, such as migrate mailbox.

For more information you could refer to: Domains FAQ



If the response is helpful, please click "Accept Answer" and upvote it.



0 Votes 0 ·