?
Solved

Exchange 2010 FWD Mail to Contact then Delete Mailbox

Posted on 2014-02-21
4
Medium Priority
?
876 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
how to add IIS SMTP to handle application/Scanner relays into office 365.
This video discusses moving either the default database or any database to a new volume.
Suggested Courses

801 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