You want an easy way to forward all mails for one or more user(s) to another user? There are several ways to achieve this. One of them is to run the following command in powershell after you connect to Office 365.
[codesyntax lang="powershell"]
Set-Mailbox user1 -ForwardingSmtpAddress user2@example.com -DeliverToMailboxAndForward $false
[/codesyntax]
In this case, user1 is the mailbox you wish to forward mail for, and user2@example.com is the address that you would like to forward the email to. Because we set DeliverToMailboxAndForward to false, a copy of the email will NOT be kept in the Office 365 mailbox.
Do you want to turn off the forwarding?
[codesyntax lang="powershell"]
Set-Mailbox user1 -ForwardingSmtpAddress $null
[/codesyntax]
If you want to check ForwardingSmtpAddress just issue the following command:
[codesyntax lang="powershell"]
Get-Mailbox -Identity user1 | fl DeliverToMailboxAndForward,ForwardingAddress,ForwardingSmtpAddress
[/codesyntax]
Note: if you don't know how to connect to Office 365 from powershell please read this post.
Hello Joe,
I am looking for Office 365 / Power Shell consultancy. This can be done over Skype. Please contact me if you are interested via email. Thanks