I have an Exchange server which used to manage multiple SMTP domains; now it only has to manage one.
I have already removed the secondary domain from all address policies; I need to remove all SMTP addresses referencing it.
All users have their primary SMTP address set to use the primary domain; but almost all of them have another address using the secondary domain. They also have many other different addesses: the SIP one used for lync, and one or more X500 ones derived from previous migrations. These should not be touched at all.
How can I remove all those secondary SMTP addresses without affecting anything else?
Best Answer
Test this in a lab and/or on a small set of test users before hitting production with this please.
The idea is that we're taking the proxyAddresses address list of each user, stripping out the ones that have the old domain name in them, and then replacing the address list with the new, updated one that does not contain references to the old domain name.
http://blogs.technet.com/b/exchange/archive/2005/01/10/350132.aspx