Sunday 30 June 2013

How to configure email forwarding using shell command

To configure the email forwarding on a Mailbox use the below shell command
Set-Mailbox -Identity "Mailbox Name" -ForwardingSMTPAddress "EmailAddress@DomainName.com"
Please note that, above shell command will forward all the emails to the Forwarding SMTP Address and no emails will deliver to concerned Mailbox To set the forwarding option to deliver the email to mailbox and to the forwarding SMTP address use the below shell command
Set-Mailbox -Identity "Mailbox Name" -ForwardingSMTPAddress "EmailAddress@DomainName.com" -DeliverToMailboxAndForward $True

No comments:

Post a Comment