Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Exchange 2010 FWD Mail to Contact then Delete Mailbox

Posted on 2014-02-21
4
Medium Priority
?
889 Views
Last Modified: 2014-02-23
OK sold off a piece of company and need to get rid of 300 mailboxes.  These guys have moved to office 365.  I currently have their mailboxes forwarding to a Mail Contact with the Office 365 account on the mail contact as External Address.  The mail is forwarding as it should just fine.

 I want to DELETE the mailboxes from my Exchange.  If just delete the mailbox and add it as an SMTP address in the mail contact then I get an NDR when sending to the address.

What step am I missing?  I thought it was a server side rule I needed to create to hold the FWd even without an actual mailbox.  I tried using the following command but it says the address doesnt exist

New-InBoxRule -Mailbox "bob smith" -Name "Forward to partner" -ExceptIfHasAttachment $false   -DeleteMessage $true -ForwardTo SMTP:bob.smith@company.onmicrosoft.com

The specified user "SMTP:bob.smith@company.onmicrosoft.com" wasn't found or is invalid. Please make sure you have type
d the name correctly.
    + CategoryInfo          : InvalidArgument: (:) [New-InboxRule], LocalizedException
    + FullyQualifiedErrorId : 5FF75595,Microsoft.Exchange.Management.RecipientTasks.NewInboxRule
0
Comment
Question by:Twhite0909
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 4

Expert Comment

by:Jeffery Hayes
ID: 39877972
Your going to have to keep the mailboxes and setup mail fowarding is the easiest method.

Set-Mailbox -Identity "Dan Park" -ForwardingAddress "danpark.parents@fineartschool.net" -DeliverToMailboxAndForward $false

This would keep them as mailboxes and forward all mail to the new address and not save any mail to the old mailbox that is sent from when mail forwarding is enabled.

Or you can enable a mailuser contact to forward to.

I wouldn't go about deleting every single mailbox but rather setting them as mailusers for the recipient type.

I would go with Disable-Mailbox for the users that away the AD Object still exist.
0
 
LVL 4

Accepted Solution

by:
Jeffery Hayes earned 2000 total points
ID: 39877993
Can you send me the complete Non Delivery Report or upload it when you try to select the contact from the GAL?

What you have listed should work, with the exception of any inbox rule. As that would require the mailboxes to be active.

set-mailcontact <Display Name> -emailaddresses SMTP:<Internal Recipient Email Address>, <External Recipient Email Address>
0
 
LVL 63

Expert Comment

by:Simon Butler (Sembee)
ID: 39879103
What you have done is correct, but I expect it is Autocomplete getting in the way.
What you need to do is add the X500 address to the contact. That way auto complete entries internally will get to the contact.

Also don't discount the delay in removing a mailbox and the OAB being updated. When you enter an SMTP address, the first Outlook does is see if it resolves to an entry in the GAL. If it does, then it is "corrected" to use that instead of the SMTP address. As it can take up to 48 hours for the GAL to be seen on all clients (OAB regeneration and then Outlook updating) it is probably best to do it on a Friday afternoon/evening.

Simon.
0
 

Author Closing Comment

by:Twhite0909
ID: 39881016
What I had was correct some of the names and emails in Ad were different from each other.  Thanks guys!
0

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

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

Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
Here in this article, you will get a step by step guidance on how to restore an Exchange database to a recovery database. Get a brief on Recovery Database and how it can be used to restore Exchange database in this section!
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…
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…
Suggested Courses

610 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