Solved

Seconday EMail Addresses in Exchange 2010

Posted on 2011-03-23
4
413 Views
Last Modified: 2012-06-27
Over the years we have merged with a few companies and because of this those users had email addresses with their old domains listed. We are now cleaning up since we have moved to Exchange 2010 and I would like to find a way to get a listing of all those with domains other then our primary domain now and delete them. If anyone could help with a script to do this I would appreciate it.
0
Comment
Question by:dagostino
  • 2
4 Comments
 
LVL 8

Expert Comment

by:oldhammbc
ID: 35199153
In all honesty you could just remove the old domains from the "allowed domains" tab in the management console. The email address's will still be attached to users but no one will be able to use them.

0
 
LVL 7

Expert Comment

by:flaphead_com
ID: 35199156
to list the ones you have run:
(get-mailbox <mailboxname>).EmailAddresses

This will help too:
http://blogs.microsoft.co.il/blogs/scriptfanatic/archive/2010/01/21/How-to-modify-email-addresses-with-PowerShell-2.0.aspx
0
 
LVL 7

Assisted Solution

by:flaphead_com
flaphead_com earned 200 total points
ID: 35199164
0
 
LVL 7

Accepted Solution

by:
Saoi earned 300 total points
ID: 35199226
Hi,

If you simply edit your Default Email Address Policy (Open Exchange Management Console > Organisation Configuratio > Hub Transport > Email Address Policies), remove any non-standard SMTP addresses in there and then apply it to all users, it should remove any non-standard email addresses from the User Object.

You may need to set all users to Automatically update based on the email address policy using this EMS script:

Get-mailbox | Set-mailbox  $_.Identity -EmailAddressPolicyEnabled $true


Each time a recipient object is modified and saved, Exchange enforces the correct application of the e-mail address criteria and settings. When an e-mail address policy is modified and saved, all associated recipients are updated with the change. In addition, if a recipient object is modified, that recipient's e-mail address policy membership is reevaluated and enforced.
http://technet.microsoft.com/en-us/library/bb232171.aspx



Sam
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question