If you want to delete only specific messages from specific senders, then I would create a mail flow rule to delete those messages and not block them in the anti-spam policy
Exchange Online Delete Blocklist Email before delivery
Hi Everyone,
We are using Exchange Online, we block certain email IDs using Anti-Spam policy. These emails are being marked as spam and following the Spam policy settings.
What is the best way to drop these emails before delivery?
Thanks
3 answers
Sort by: Most helpful
-
-
KyleXu-MSFT 26,246 Reputation points
2020-08-07T05:49:28.51+00:00 Here is detail information about how EOP works:
If you want to prevent email from delivery to user mailbox, you need to use "Mail flow rules" or "Anti-Spam" to block emails. Both of them could redirect email to quarantine instead of the intended recipients. You can also configure policy to delete them directly.
Here is a screenshot about configuring Anti-Spam policy to delete email before delivering to mailbox:
-
Andy David - MVP 146.4K Reputation points MVP
2020-08-28T11:40:35.217+00:00 If the requirement is to "block certain email IDs".
Use a Mail Flow rule to do this
or block by sender in the anti-spam policy
https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/create-block-sender-lists-in-office-365?view=o365-worldwideCreate blocked sender lists in EOP