Automated removal of specific attachments from incoming emails

%3CLINGO-SUB%20id%3D%22lingo-sub-2755886%22%20slang%3D%22en-US%22%3EAutomated%20removal%20of%20specific%20attachments%20from%20incoming%20emails%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2755886%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20bringing%20this%20discussion%20here%2C%20as%20it%20was%20something%20that%20was%20requested%20on%20Uservoice%2C%20but%20the%20Exchange%20uservoice%20site%20no%20longer%20exists.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20pain%20is%20Exchange%20Online%20not%20having%20the%20option%20to%20automatically%20remove%20an%20attachment%20using%20a%20flow%20rule.%20It%20know%20it%20would%20be%20possible%20to%20have%20a%20%22blanket%22%20removal%20of%20attachments%20using%20EOP%2C%20but%20there%20I%20cannot%20select%2C%20for%20example%2C%20.txt%20extension%20to%20be%20filtered%20out.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20company%20I%20work%20for%20has%20partners%20that%20automatically%20add%20a%20disclaimer.txt%20attachment%20to%20any%20email%20leaving%20their%20servers.%26nbsp%3B%20Some%20of%20my%20bosses%20would%20like%20to%20be%20able%20to%20search%20for%20%22the%20email%20from%20that%20guy%20that%20has%20an%20attachment%22%2C%20and%20it's%20pretty%20hard%20when%20all%20of%20them%20have%20attachments.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20trying%20to%20use%20rules%2C%20I%20can%20target%20the%20emails%20coming%20from%20that%20domain%20that%20have%20the%20disclaimer.txt%20attachment%2C%20but%20I%20have%20no%20option%20to%20remove%20that%20attachment.%20I%20tried%20all%20kind%20for%20power%20automate%20options%2C%20but%20nothing%20helps.%20In%20the%20end%2C%20most%20likely%20we'll%20have%20to%20use%20a%203rd%20party%20Outlook%20plug-in%20for%20that%2C%20but%20I%20think%20it%20would%20be%20a%20much%20more%20elegant%20solution%20to%20have%20this%20option%20on%20the%20server%20side%2C%20as%20a%20flow%20rule.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20know%20this%20was%20a%20request%20on%20uservoice%2C%20it%20had%20some%20hundreds%20of%20votes%2C%20but%20as%20the%20site%20no%20longer%20exists%2C%20I%20am%20not%20sure%20what%20would%20be%20the%20status%20for%20that%20request.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOr%20is%20there%20some%20way%20to%20achieve%20this%20with%20the%20current%20options%3F%20I%20couldn't%20find%20any.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E(my%20bosses%20even%20agreed%20to%20a%20blanket%20removal%20of%20all%20.txt%20files%20from%20their%20emails%2C%20tried%20to%20achieve%20it%20using%20EOP%20to%20block%20that%20specific%20extension%2C%20but%20it's%20not%20on%20the%20list%20of%20aprox.%20100%20extensions%20that%20can%20be%20blocked.)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2755886%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%20Server%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFlow%20Rules%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2756668%22%20slang%3D%22en-US%22%3ERe%3A%20Automated%20removal%20of%20specific%20attachments%20from%20incoming%20emails%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2756668%22%20slang%3D%22en-US%22%3EYou%20should%20be%20able%20to%20exclude%20specific%20attachment%20types%20from%20your%20searches%2C%20so%20just%20use%20that%3F%20Mail%20flow%20rules%20wont%20help%20here%2C%20as%20there%20is%20no%20such%20action.%20You%20can%20try%20adding%20it%20to%20the%20common%20attachment%20filter%20via%20PowerShell%20(Set-MalwareFilterPolicy).%3C%2FLINGO-BODY%3E
New Contributor

Hello all,

 

I'm bringing this discussion here, as it was something that was requested on Uservoice, but the Exchange uservoice site no longer exists.

 

My pain is Exchange Online not having the option to automatically remove an attachment using a flow rule. It know it would be possible to have a "blanket" removal of attachments using EOP, but there I cannot select, for example, .txt extension to be filtered out.

 

The company I work for has partners that automatically add a disclaimer.txt attachment to any email leaving their servers.  Some of my bosses would like to be able to search for "the email from that guy that has an attachment", and it's pretty hard when all of them have attachments.

 

I was trying to use rules, I can target the emails coming from that domain that have the disclaimer.txt attachment, but I have no option to remove that attachment. I tried all kind for power automate options, but nothing helps. In the end, most likely we'll have to use a 3rd party Outlook plug-in for that, but I think it would be a much more elegant solution to have this option on the server side, as a flow rule.

 

I know this was a request on uservoice, it had some hundreds of votes, but as the site no longer exists, I am not sure what would be the status for that request. 

 

Or is there some way to achieve this with the current options? I couldn't find any.

 

(my bosses even agreed to a blanket removal of all .txt files from their emails, tried to achieve it using EOP to block that specific extension, but it's not on the list of aprox. 100 extensions that can be blocked.)

2 Replies
You should be able to exclude specific attachment types from your searches, so just use that? Mail flow rules wont help here, as there is no such action. You can try adding it to the common attachment filter via PowerShell (Set-MalwareFilterPolicy).
I tried adding it to the common attachment filter in a new policy, however the emails are completely quarantined, even if the action I configured is to DeleteAttachmentAndUseCustomAlertText. I think this was changed earlier this year or late last year, that the emails are no longer delivered with the attachment removed, but quarantined. Or is there some hidden configuration option that I couldn't find?
I still think that would be great to have the option to this filtering using mail flow rules.