Email Forwarding in Office 365 Exchange Online

Working with a customer the other day, I discovered they had a need to forward emails from an on-premise reporting system to a vendor using a customer supplied email address.  So, email to vendor@customerdomain.com will need to be forwarded to vendor@vendordomain.com.  The setup is similar to that with on-premise Exchange.

There are some articles I found that state forwarding can be set up without a mailbox in Office 365 by instead using an External Contact.  Through testing the steps in these articles, I was unable to reproduce a contact that forwards email.  An external contact works for using as a contact to email to from the address list but does not work as a forwarder.  To configure forwarding, a mailbox is required.

To setup email forwarding in Office 365, we will first need to…

  • Identify which Office 365 account needs to have email forwarded to another SMTP address
  • Assign the account a license (or convert the mailbox to a shared mailbox and then remove the license)

Now we can assign a forwarding address via O365 OWA or PowerShell.

Via OWA signed in as a O365 admin…

  • Click on Home
  • Select Options under Outlook
  • On the “toolbar”, click the Manage Myself drop-down to select Another Account
  • Choose the mailbox you want to set up and click OK
  • You are now in the Options of the mailbox you chose
  • Click on Connected Accounts
  • Scroll to the bottom of the page until you see the Forwarding section
  • Enter the email (SMTP) address that all messages bound for this mailbox will be forwarded to (NOTE: Remember to select or deselect to keep a copy of the forwarded message)
  • Click Start Forwarding to complete the setting
  • To reverse (or disable) this setting, clear the email address field and click Stop Forwarding

Via PowerShell…

  • Connect to Office 365 with PowerShell
  • To enable forwarding for a mailbox and keep a copy of the forwarded message, enter the following command…
    • Set-Mailbox -Identity MailboxAlias -DeliverToMailboxAndForward $true -ForwardingSMTPAddress username@domain.com
  • To disable forwarding for a mailbox, enter this command…
    • Set-Mailbox -Identity MailboxAlias -DeliverToMailboxAndForward $false -ForwardingSMTPAddress $null
  • To enable forwarding for a mailbox but not keep a copy of the message, enter the following command…
    • Set-Mailbox -Identity MailboxAlias -DeliverToMailboxAndForward $false -ForwardingSMTPAddress username@domain.com

Reference(s):

Have fun.

Todd (@oddytee)

Originally published on 31 March 2013 at http://oddytee.blogspot.com/2013/03/email-forwarding-in-office-365.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s