Learn Exchange the Guru way !!!


EOP / Office 365: Block Email Based on Message Content

This post is explaining the steps to block the email based on Message Content in Exchange Online Protection


Please follow the below steps to block emails based on Message Content like Subject or Body or Both.


  1. Expand the mail flow à Rules and click on + sign


  2. Now you will see a list of possible rules. Select “Create a new rule” as shown below.

3. Give the name to this rule and click on more options to expand more options then Click on “Apply this rule if” then select “The subject or body”à “Subject or body includes any of these words” to block any one phrase or word in the subject or body. We also have other options to use any or all word of the subject to match with.

4. In the Specify words or phases window, add the phrase or subject this you are willing to block then click on + then click ok.

5. Now all will show next to the rule condition. We can add some more conditions if required.

        6. In Do the following action select “Block the message” or other choice of action. Now we get 3 options. I will select “Delete the message without notifying anyone” to avoid queue building for spams. We can add some more actions


7. Set the priority of the rule.

8. Click save.


To test this rule send an email with the blocked subject or body or both and do the message tracking.

Prabhat Nigam

Microsoft MVP | Exchange Server


6 Responses to “EOP / Office 365: Block Email Based on Message Content”

  1. Patel Says:

    Can we get any good Exchange 2013 On-Premises articles here at
    Thanks 🙂

  2. Prabhat Nigam Says:

    What are you looking for?
    There are so many.

  3. Patel Says:

    Many companies are thinking about moving to Exchange Server 2013 SP1, once SP1 is out. So more articles about Exchange Server 2013 will be great 🙂

  4. Prabhat Nigam Says:

    Would you be specific to your requirement……. There are so many blogs on 2013…

    More blog will come as soon as possible.

    Migration blogs are already in places for companies migration.

    When SP1 will release we can talk about it.

  5. Patel Says:

    Articles about Exchange Server 2007 > Exchange Server 2013.
    Articles about Exchange Server 2010 > Exchange Server 2013.
    Thanks A lot 🙂

  6. Prabhat Nigam Says:

    There are so many blogs. Please read them and let us know what is your pain area.

Leave a Reply




Do NOT follow this link or you will be banned from the site!