How to stop auto forwarding to specific recipiant domain such as gmail

Anonymous
2020-10-31T06:34:50.417+00:00

I use O365 and I need stop auto forwarding auto forwarding to specific recipiant domain such as gmail but other domain should be allow following this scenario:

Sender: ******@externaldomain.com
Recipiant: ******@mydomain.com ***He configured auto forwarding to person2@Stuff .com
Mail has been block.

Sender: ******@externaldomain.com
Recipiant: ******@mydomain.com ***He configured auto forwarding to person2@Karima ben .com
Mail has been block also.

Note: I already configure mail flow rule following kb: https://support.microsoft.com/en-us/office/stop-auto-forwarding-emails-in-microsoft-365-f9d693ba-5c78-47c0-b156-8e461e062aa7 but not working

On Outbound spam filter policy, Need to change auto forwarding or not ?

Exchange Exchange Server Management
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
    2020-10-31T07:40:03.697+00:00

    Use the Remote domain settings - add a remote domain for gmail.com first, then adjust the AutoForwardEnabled value:

    Set-RemoteDomain gmail.com -AutoForwardEnabled $false  
    

    More info here: https://learn.microsoft.com/en-us/powershell/module/exchange/set-remotedomain?view=exchange-ps

    2 people found this answer helpful.
    0 comments No comments

  2. Yuki Sun-MSFT 41,376 Reputation points Moderator
    2020-11-02T07:19:35.23+00:00

    Hi @Anonymous ,

    On Outbound spam filter policy, Need to change auto forwarding or not ?

    Are you able to auto forward to any external recipient domain right now? If this is the case, there is no need to change the Outbound spam filter policy and agree with michev that you can add a remote domain for the the external domain and disable its AutoForward using the cmdlet shared by michev or via the Exchange Admin Center:
    36629-02.png

    I've tested it in my lab and it works at my end. Please have a go and feel free to post back with any update.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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.

    1 person found this answer 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.