Forum Discussion

Burak_MERCAN's avatar
Burak_MERCAN
Copper Contributor
Dec 26, 2022

Attachment Count for Exchange Online Traffic

Hello everyone,


I'm managing a project on my customer, and they wish to block their users when an email sending inside-to-inside, outside-to-inside, inside-to-outside and if email contains 20 or more attachment or mode than 20 MB of size. 


20 MB size is easy to do, because, can be configured on default DLP policies. But, I'm not sure that to count attachment. Is there any way to do it with other services, like; Defender for Cloud App, Insider Risk Managemet, Exchange Online Transport Rules.


Thank you!

5 Replies

    • Burak_MERCAN's avatar
      Burak_MERCAN
      Copper Contributor
      Thank you for answer!
      Do you know, any work-around here ?
      • VasilMichev's avatar
        VasilMichev
        MVP
        Perhaps some Outlook add-in can do it. Using custom transport agents is not possible in Exchange Online, so outside of client-side solution, the only thing that comes to mind is redirecting the mail flow to external system that can satisfy this criteria.

Resources