How to redirect mail in office 365
Redirecting mail in Office 365 involves setting up a mail flow rule, also known as a transport rule, to forward emails from one mailbox to another. Here are the steps:
Method 1: Using the Office 365 Admin Center
- Sign in to the Office 365 Admin Center with your admin credentials.
- Go to Mail > Mail flow > Rules.
- Click New rule.
- Select Redirect messages as the rule type.
- Choose the condition for which you want to apply the rule (e.g., "From a specific sender" or "To a specific recipient").
- Enter the email address you want to redirect the mail to.
- Choose the action you want to take (e.g., "Redirect the message to").
- Click Save.
Method 2: Using PowerShell
- Open PowerShell and connect to your Office 365 tenant using the following command:
Connect-ExchangeOnline -UserPrincipalName <your_admin_email> -ShowProgress $true
- Run the following command to create a new transport rule:
New-TransportRule -Name "Redirect Mail" -Conditions @{From = "[email protected]"} -Actions @{RedirectTo "[email protected]"}
- Replace
[email protected]
with the email address you want to redirect the mail from, and[email protected]
with the email address you want to redirect the mail to.
Method 3: Using the Exchange Online PowerShell module
- Open PowerShell and import the Exchange Online PowerShell module:
Import-Module -Name ExchangeOnline
- Run the following command to create a new transport rule:
New-TransportRule -Name "Redirect Mail" -Conditions @{From = "[email protected]"} -Actions @{RedirectTo "[email protected]"}
- Replace
[email protected]
with the email address you want to redirect the mail from, and[email protected]
with the email address you want to redirect the mail to.
Tips and Considerations
- Make sure to test the rule by sending an email from the specified sender to the specified recipient to ensure it is working as expected.
- You can also use other conditions and actions in the rule, such as forwarding emails based on specific keywords or attachments.
- If you want to redirect emails from a specific domain, you can use the
@
symbol followed by the domain name (e.g.,@contoso.com
). - If you want to redirect emails from a specific distribution group, you can use the group's email address (e.g.,
[email protected]
).