question

RisingFlight-7863 avatar image
0 Votes"
RisingFlight-7863 asked KyleXu-MSFT answered

Change the primary smtp address

Hi All

i am using exchange 2016 hybrid environment, i have a shared mailbox lets say shared1@contoso.com, i want to change the primary smtp address of this mailbox to shared2@contoso.com and add additional alias(current email) as seconday i.e shared1@contoso.com, i am unable to change the primary smtp address in exchange online and from exchange onprem i dont see the shared mailbox. experts guide me how to change the Primary address and add secondary address to this shared mailbox.

office-exchange-server-administrationoffice-exchange-online-itprooffice-exchange-hybrid-itpro
· 1
5 |1600 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.

@RisingFlight-7863
I am writing here to confirm with you any update about this thread now?
If the suggestion below helps, please be free to mark it as an answer for helping more people.

0 Votes 0 ·
KyleXu-MSFT avatar image
0 Votes"
KyleXu-MSFT answered

@RisingFlight-7863

Disable email address policy on this mailbox:

 Set-RemoteMailbox Shared1 -EmailAddressPolicyEnabled $false

Change it to another email address:

 Set-RemoteMailbox Shared1 -PrimarySmtpAddress Shared1@contoso.com

Remove the email address that you want:

  Set-RemoteMailbox Shared1 -EmailAddresses @{Remove="Shared2@contoso.com"}

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.

5 |1600 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.

KyleXu-MSFT avatar image
0 Votes"
KyleXu-MSFT answered

@RisingFlight-7863

i am unable to change the primary smtp address in exchange online and from exchange onprem i dont see the shared mailbox.

How this shared mailbox created?

If you cannot see this shared mailbox on Exchange on-premises, I think it is created on Exchange online. You could manage it from Exchange online admin center directly:
134137-qa-kyle-10-22-52.png

What do you mean about unable to change the primary smtp address in Exchange onine?


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.


5 |1600 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.

RisingFlight-7863 avatar image
0 Votes"
RisingFlight-7863 answered RisingFlight-7863 edited

is it not possible to change using remote mailbox syntax from onprem to change the primary smtp. please help me with the syntax

5 |1600 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.

KyleXu-MSFT avatar image
0 Votes"
KyleXu-MSFT answered

Here is it:

 Set-RemoteMailbox Shared1 -EmailAddresses @{Add="smtp:Shared2@contoso.com"}
 Set-RemoteMailbox Shared1 -EmailAddressPolicyEnabled $false
 Set-RemoteMailbox Shared1 -PrimarySmtpAddress Shared2@contoso.com
5 |1600 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.

RisingFlight-7863 avatar image
0 Votes"
RisingFlight-7863 answered

The syntax works perfect.

Now i can see in Exchange online below email addresses.

SMTP:shared2@contoso.com
smtp:shared1@contoso.com
smtp:shared1@contoso.mail.onmicrosoft.com
smtp:shared1@contoso.onmicrosoft.com

Now if i need to remove smtp:shared1@contoso.com how do i remove.
Also how i edit shared1@contoso.mail.onmicrosoft.com & shared1@contoso.onmicrosoft.com to shared2@contoso.mail.onmicrosoft.com shared2@contoso.onmicrosoft.com

5 |1600 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.