If a message fails DMARC inspection, you can specify the action to reject the message for the sender's DMARC policy in the anti-phishing policy.
For more information, please refer to the following link:
Anti-phishing policies | Microsoft Learn
Configure anti-phishing policies in EOP | Microsoft Learn
In addition, mail flow rules can also reject messages that fail DMARC checks, you can refer to the following screenshot settings:
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.