How to disable mail forwarding in office 365

To disable mail forwarding in Office 365, you can follow these steps:

Method 1: Using the Office 365 Admin Center

  1. Sign in to the Office 365 Admin Center with your admin credentials.
  2. Go to Users > Active users.
  3. Select the user account for which you want to disable mail forwarding.
  4. Click on the Mail tab.
  5. Scroll down to the Delivery options section.
  6. Uncheck the box next to Forward email to.
  7. Click Save changes.

Method 2: Using PowerShell

  1. Open PowerShell and connect to your Office 365 tenant using the following command: Connect-AzureAD
  2. Run the following command to disable mail forwarding for a specific user: Set-MailUser -Identity <userPrincipalName> -ForwardingSMTPAddress $null
  3. Replace <userPrincipalName> with the actual UPN of the user account you want to disable mail forwarding for.

Method 3: Using the Exchange Admin Center

  1. Sign in to the Exchange Admin Center with your admin credentials.
  2. Go to Recipients > Mailboxes.
  3. Select the user account for which you want to disable mail forwarding.
  4. Click on the Mailbox features tab.
  5. Scroll down to the Delivery options section.
  6. Uncheck the box next to Forward email to.
  7. Click Save.

Note: You may need to have the necessary permissions and roles assigned to your account to perform these actions.

Also, keep in mind that disabling mail forwarding will prevent the user's email from being forwarded to another email address. If you want to prevent the user from sending emails to external recipients, you may need to configure additional settings, such as blocking external senders or configuring transport rules.