Route mail to a mail enabled contact

I want to create mail enabled contacts for 500 mailboxes in a company were aquring and do away with their mailboxes.  Then create mailboxes here at my domain but any mail sent to their old company email have that domain route the mail using the mail enabled contact so I would create the contacts add the external address as "newcompanydomainEmail".  Then  add a smtp address to the contact for the "existing domain email".  Correct?

Im using this script to create the contacts with an CSV that gathered names and mail address .

 Import-Csv “contacts.csv” | ForEach {New-MailContact -Name $_.Name -Firstname $_.FirstName -LastName $_.LastName -ExternalEmailAddress $_.ExternalEmailAddress -OrganizationalUnit “Domainname/OUname”}

How can I add the smtp address using a script and where do I make a rule or whatever to have the mail rout through this contact so I can delete their mailboxes on the olddomain?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Delphineous SilverwingGood Ol' GeekCommented:
If I have interpreted your goal correctly, you only need to create a mail contact with their old smtp address and the external address as their new address on your system.


That's it. No routing necessary as long as the old servers are online. When the old Exchange server receives the e-mail for, it will recognize that address as belonging to an external contact and automatically send the message to

Ideally, their new mailboxes at the new company will have the old company address with the MX records for the domain pointing to the new company. Then the contacts and old company servers wouldn't be necessary.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jian An LimSolutions ArchitectCommented:
i think is more to convert them to mail-enabled user. or use of targetaddress will be better solutions then create 500 contacts.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.