Solved

Exchange 2010 FWD Mail to Contact then Delete Mailbox

Posted on 2014-02-21
4
803 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
  • 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 500 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

Why do Marketing keep bothering you?

Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

Join & Write a Comment

Suggested Solutions

Easy CSR creation in Exchange 2007,2010 and 2013
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
In this video we show how to create a Distribution Group 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 Recipients >>…
In this video we show how to create an email address policy 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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now