Forum Discussion
devopsnetstager
Feb 20, 2025Copper Contributor
Need to Block Gmail
Hi,
I need to block emails sent to and received from Gmail in M365.I have added a rule in M365, but it didn’t work. Could you help me resolve this issue?
- Dan_SnapeSteel Contributor
Have a look a Ankido's response. The problem you have is that you are trying to block both the outgoing and incoming messages in the same rule. You'll need two separate rules for this.
- AnkidoIron Contributor
Hi devopsnetstager
To block emails sent to Gmail
1- Open the Exchange Admin Center.
2- Go to Mail Flow > Rules.
3- Click the plus sign (+) and select Create a new rule.
4- Give the rule a name.
5- In the Apply this rule if, select The sender is a member of... and choose di group you want to block.
6- In the Do the following, select Reject the message with the explanation... and enter a custom message explaining why the message was rejected.
In the Except if... section, select The recipient domain is... and enter the domain you want to block the user from sending emails to like Gmail
Click Save to create the rule.Be sure that you have enabled the rule
To block emails received from Gmail. The same steps but with a few changesFell free to reach out and please mark as it accepted answers for others can profit from this discussion.