We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Delete certain SMTP aliases for every AD user?

Medium Priority
626 Views
Last Modified: 2012-05-06
I have a domain that has been de-migrated from domainA to domainB.  The users in domainB have at least 2 SMTP aliases

flastname@companyA.com
flastname@companyB.com

I want to remove all the flastname@companyA.com SMTP aliases for all the users in domainB.  I was thinking maybe the recipient policy, but I don't know how to remove old addys with that.  Is there a clean way to remove all thoses aliases?
Comment
Watch Question

Commented:
You're on the right lines, simply remove the old aliases from the recipient policy and apply the policy.
That will then remove the aliases from all users which has that policy tagged to it.
-BBRazz

Author

Commented:
I didn't really make it terribly clear, but when the users were migrated from domainA to domainB, all AD attributes were brought over.  The domainB Exchange server only has 1 recipient policy, which is to create "@companyb.com".  So the other SMTP aliases weren't created w/the recipient policy.

Commented:
Create a recipient policy for either those users or all users since they will all have the same scheme when done. If you set the policy  with the addresses you want, you should be good to go.

Commented:
So the emails aliases of companyA.com are attached to the users manually in there AD properties?
-BBRazz
there might be a good visual basic script out there for that, good question

Commented:
The microsoft articel, http://support.microsoft.com/kb/318774 explains removing duplicate emails, however, the LDIFDE commands displayed can be modified to remove specified email aliases.
Have a good read of the article and it should point you in the right direction.
-BBRazz

Author

Commented:
BBRazz,

      I used Quest Migration Manager to migrate the domain.  That brings the attributes over.  Usually, it's a good idea to keep the old aliases when migrating a company INTO the domain, but since we divested a company, they can't really use the old @companyA.com email aliases.  They weren't manually created, they were migrated along with the users.
Expert of the Quarter 2009
Expert of the Year 2009
Commented:
I don't think Recipient Policy will remove email addresses.
However I think admodify.net will do that.

-M

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Great Job!  I should have checked that first!
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.