setup forwarder

Glenn Maxwell 12,871 Reputation points
2023-04-22T02:57:14.51+00:00

Hi All i have a shared mailbox and regular mailbox which are created in onprem and migrated to online. can anyone help me with powershell syntax to setup forwarder

  1. check what is the current forwarder setup from powershell.
  2. Remove existing forwarder from powershell.
  3. add forwarder from powershell(either be to another mailbox or to an external contact)
Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
Exchange | Exchange Server | Management
Exchange | Hybrid management
{count} votes

Accepted answer
  1. Xuyan Ding - MSFT 7,601 Reputation points
    2023-04-24T10:19:52.65+00:00

    Hi @Glenn Maxwell ,

    1. Display information about Specific Mailbox Forwarding settings:
    Get-Mailbox ******@contoso.com | FL DeliverToMailboxAndForward,ForwardingAddress,ForwardingSmtpAddress
    
    1. Disable (remove) E-mail Forwarding option:
    Set-Mailbox ******@contoso.com -ForwardingAddress(/-ForwardingsmtpAddress) $Null
    
    1. Forward all email sent to another mailbox:
    Set-Mailbox -Identity "someone" -ForwardingAddress "******@contoso.com"
    

    Forward all mail to an external email address:

    Set-Mailbox -Identity "someone" -DeliverToMailboxAndForward $true -ForwardingSMTPAddress "******@contoso.com"
    

      For reference: Set-Mailbox.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.