Solved

Seconday EMail Addresses in Exchange 2010

Posted on 2011-03-23
4
402 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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
To show how to create a transport rule 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 >> Rules tab.:  To cr…
how to add IIS SMTP to handle application/Scanner relays into office 365.

803 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