How to forward emails in Office 365

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.

  1. 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

Scrie si tu o vorbulita


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.