Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Seconday EMail Addresses in Exchange 2010

Posted on 2011-03-23
4
Medium Priority
?
451 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 800 total points
ID: 35199164
0
 
LVL 7

Accepted Solution

by:
Saoi earned 1200 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Want to know how to use Exchange Server Eseutil command? Go through this article as it gives you the know-how.
If you have come across a situation where you need to find some EDB mailbox recovery techniques, then here you will find the same. In this article, we will take you through three techniques using which you will be able to perform EDB recovery. You …
In this video we show how to create a mailbox database 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 Servers >> Data…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

783 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