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:firstname.lastname@example.org
The specified user "SMTP:email@example.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