Share via

How to change SMTP address, add old primary email address as alias. Do not remove all other alias

DoBongSoon 546 Reputation points
2024-02-21T02:54:51.3533333+00:00

Hi,

We have a new domain, and we want to achieve the following:

  • Add the new domain as the primary SMTP email address
  • We need to retain the old email address as an alias.
  • We don't want to delete existing aliases and proxy addresses.
  • The login also does not change. We want users to continue to log in using their old email address.
  • We have an on-prem Exchange 2019 server, Hybrid. All mailboxes are in the cloud, but the domain controllers are still on-prem as the authority.
  • We already registered the new domain, and I can achieve all this manually. I need to do this in bulk using CSV to ensure that only users who are in the CSV file will be modified to be cautious.

For this exercise, let's take John Smith as an example.

Username and login: JSmith

Current Email: ******@oldemail.com

New Email: ******@newemail.com

Proxy Addresses: there are multiple entries in Adsi edit for this user. SIP, FAXMaker, etc., that we want to keep as is.

How do I achieve this through Powershell or a free tool? I understand that there are many posts online, but I want to start new and ensure that this is custom to my request so I can follow. Thank you.

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.

Exchange | Hybrid management
Exchange | Hybrid management

The administration of a hybrid deployment that connects on-premises Exchange Server with Exchange Online, enabling seamless integration and centralized control.

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Vasil Michev 125.3K Reputation points MVP Volunteer Moderator
    2024-02-21T08:13:27.6933333+00:00

    In Hybrid scenarios, you can easily address this by configuring an new email address policy: https://learn.microsoft.com/en-us/Exchange/email-addresses-and-address-books/email-address-policies/email-address-policies?view=exchserver-2019

    If for some reason you are not able to leverage Email address policies, the "second best" solution is to use PowerShell. In particular, the -WindowsEmailAddress parameter of Set-Mailbox does exactly what you are looking for - it adds the new value as primary SMTP address, while preserving the old one as secondary. It does not change the UPN or anything else. Here's an example:

    Set-Mailbox ******@domain.com -WindowsEmailAddress ******@newdomain.com
    
    1 person found this answer helpful.

  2. DoBongSoon 546 Reputation points
    2024-02-29T18:26:05.5166667+00:00

    Thanks for your help. I haven't implemented it yet but thank you for your response. I will follow your suggestion.

    0 comments No comments

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

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