How to Setup Exchange Email Forwarding using Powershell

There have been many times when a request came in order to forward messages sent a mailbox to another mailbox or mailcontact. This mostly happens when there is an ongoing migration and the user has an account on the other organization that is part of the migration, or they just want their mail to be forwarded to another account in order for them to not have to check multiple mailboxes.

But let's cut to the chase! Every mailbox has two properties, ForwardingSMTPAddress and DeliverToMailboxandForward.

The ForwardingSMTPAddress is the address where the messages are going to be forwarded. The DeliveToMailboxandForward is the option to leave a copy of the message to the mailbox.

So, if you want to just forward the messages sent to user John Smith to john.smith@otherorg.com, you should use:

1
2
Set-Mailbox -Identity "John Smith" `
      -ForwardingSMTPAddress "john.smith@otherorg.com.net"

1
2
3
Set-Mailbox -Identity "John Smith" `
     -DeliverToMailboxAndForward $true `
      -ForwardingSMTPAddress "john.smith@otherorg.com.net"
 

Popular posts from this blog

Syslog Message Collection for OMS from sources that do not support the agent

How to Configure Message Forwarding on a Mailbox Level

Generating Alerts On OMS