Note Customers sometimes ask for the auto-forwarding feature to accommodate internal business processes. This feature is also known as an alternate recipient.
Note This KB can also be used to remove a previously added alternate recipient. Modify steps appropriately.
- A user has to forward mail from one mailbox to another mailbox when the user is on an extended leave.
- A user requests mail that is sent to a particular mailbox also be sent to an external SMTP address.
To resolve this issue, use the Set-Mailbox Windows PowerShell cmdlet together with the following parameters to configure mailbox forwarding:
- The DeliverToMailboxAndForward parameter specifies whether messages that are sent to this mailbox are forwarded to another address. If this parameter is set to $true, messages are delivered to the mailbox and to the forwarding address. If the parameter is set to $false, messages are delivered only to the forwarding address.
- The ForwardingAddress parameter specifies a forwarding address.
- The ForwardingSmtpAddress parameter specifies a forwarding SMTP address.
You should use the ForwardingAddress parameter for most instances. The ForwardingSmtpAddress parameter allows for an external SMTP address to be set. However, it may not work (by design to prevent mail looping). Instead create a mail contact and use ForwardingAddress.
- Obtain the following information:
- The SMTP address of the mailbox that mail is to be forwarded from.
- The SMTP address of the mailbox that mail is to be forwarded to.
- Whether email messages should be delivered to both the original recipient and the alternative recipient or only to the alternative recipient.
- Run the following cmdlet by using Windows PowerShell: Note In this cmdlet, the placeholder <MailboxIdParameter> represents the alias of the SMTP address where mail is forwarded from. The placeholder <RecipientIdParameter> represents the SMTP address where mail is forwarded to.
Set-Mailbox -Identity <MailboxIdParameter> -DeliverToMailboxAndForward <$true/$false> -ForwardingAddress <RecipientIdParameter>
For example, the cmdlet resembles the following:
Set-Mailbox -Identity John -DeliverToMailboxAndForward $true -ForwardingAddress email@example.com