Change the primary smtp address

Rising Flight 4,196 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.

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,360 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,480 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,985 questions
{count} votes

Accepted answer
  1. KyleXu-MSFT 26,236 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 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.

    1 person found this answer helpful.
    0 comments No comments

4 additional answers

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

    Here is it:

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

  2. KyleXu-MSFT 26,236 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 4,196 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 4,196 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