Change the primary smtp address

Rising Flight 5,216 Reputation points
2021-09-21T18:53:12.74+00:00

Hi All

i am using exchange 2016 hybrid environment, i have a shared mailbox lets say shared1@Company portal .com, i want to change the primary smtp address of this mailbox to shared2@Company portal .com and add additional alias(current email) as seconday i.e shared1@Company portal .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.

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,185 questions
Exchange | Exchange Server | Management
Exchange | Hybrid management
{count} votes

Accepted answer
  1. KyleXu-MSFT 26,396 Reputation points
    2021-09-30T08:50:53.51+00:00

    @Rising Flight

    Disable email address policy on this mailbox:

    Set-RemoteMailbox Shared1 -EmailAddressPolicyEnabled $false  
    

    Change it to another email address:

    Set-RemoteMailbox Shared1 -PrimarySmtpAddress ******@contoso.com  
    

    Remove the email address that you want:

     Set-RemoteMailbox Shared1 -EmailAddresses @{Remove="******@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.

    2 people found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. KyleXu-MSFT 26,396 Reputation points
    2021-09-23T08:37:52.55+00:00

    Here is it:

    Set-RemoteMailbox Shared1 -EmailAddresses @{Add="smtp:******@contoso.com"}
    Set-RemoteMailbox Shared1 -EmailAddressPolicyEnabled $false
    Set-RemoteMailbox Shared1 -PrimarySmtpAddress ******@contoso.com
    
    2 people found this answer helpful.
    0 comments No comments

  2. KyleXu-MSFT 26,396 Reputation points
    2021-09-22T02:25:01.133+00:00

    @Rising Flight

    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.

    0 comments No comments

  3. Rising Flight 5,216 Reputation points
    2021-09-22T06:42:24.407+00:00

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

    0 comments No comments

  4. Rising Flight 5,216 Reputation points
    2021-09-30T07:05:56.683+00:00

    The syntax works perfect.

    Now i can see in Exchange online below email addresses.

    SMTP:shared2@Company portal .com
    smtp:shared1@Company portal .com
    smtp:shared1@Company portal .mail.onmicrosoft.com
    smtp:shared1@Company portal .onmicrosoft.com

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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.