Forum Discussion
Blake Bohannon
Jul 30, 2018Copper Contributor
Mail Flow Rules Syntax
I have a large list of file extensions that I need to have blocked. Is there a way for me to dump all of these file extensions in at once while creating the rule, or do I have to manually copy and p...
Blake Bohannon
Jul 31, 2018Copper Contributor
I am strictly speaking about the mail flow rules. Is there a way to upload bulk words or phrases for the rules to look for? I am trying to create a rule that rejects a message if the attachment extension contains "words or phrases" in it, and I have a 90+ extension list to upload for these words or phrases. Is there a proper way of formatting when inputting these words or phrases? I feel as though manually copying and pasting each one will result in missing some.
VasilMichev
Aug 01, 2018MVP
You can use the Set-TransportRule cmdlet, add the extensions to a list like the example below:
Set-TransportRule -AttachmentExtensionMatchesWords @('bbbb','aaaa')