Blocking specific file types as attachment in a Transport rule

Bühler Gabriel 81 Reputation points
2023-03-09T14:00:15.58+00:00

Hello Everyone

Is there a way to create a specific Transport rule that blocks all incoming E-Mails that contain HTML-Files as attachments?

I can adjust my Malware-Policies to block these kinds of E-Mails for outgoing E-Mails, and I can block a specific set up list of file-types, but I would like to add additional file types to this transport rule.

Thank you for your Help.

Kind regards,

Gabe

Microsoft Exchange Online
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,628 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 109.7K Reputation points MVP
    2023-03-09T15:17:13.99+00:00

    Sure, you should be able to use the AttachmentExtensionMatchesWords condition, as detailed for example here: https://learn.microsoft.com/en-us/exchange/security-and-compliance/mail-flow-rules/inspect-message-attachments#inspect-the-file-properties-of-attachments

    Though the common attachment filter under Malware policies is probably a better place to enforce this.


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.