Jump to content

Recommended Posts

Posted

When we first deployed 365 I was surprised this function wasn’t built in by design or at the very least the functionality to simply enable it.

 

We ended up scouring google for various profanity lists and we created our own list from these and imported it in to Exchange online with Powershell.

 

The Powershell essentially created mailflow rules designed to block messages based on content taken from the csv files we created.

Posted (edited)

I created a mail flow rule. rules.JPG

 

 

good team building I had to add each word that might be classed as bad language but seeing as I have no team it was up to me to add them.

 

We have securus so I add any words that get picked up by that.

 

not the best solution but at least I am doing something.

Edited by round2it
Posted
I created a mail flow rule. [ATTACH=CONFIG]49817[/ATTACH]

 

 

good team building I had to add each word that might be classed as bad language but seeing as I have no team it was up to me to add them.

 

We have secures so I add any words that get picked up by that.

 

not the best solution but at least I am doing something.

 

and you used powershell to import the words from a CSV? all i can see is one work entries

Posted
unfortunately not I will be investigating how to do that once I migrate over, yep one word entries it was a not so quick fix bigger fish to fry

 

You can use Powershell to import the files from a csv.

 

I’ll dig up the commands and post they’re here for you.

  • Thanks 1
Posted

So the command is as follows

 

New-TransportRule "#RULENAME" -SubjectOrBodyContainsWords (Get-Content

#PathToCSV) -RejectMessageReasonText "Profanity Detected Message Not

Delivered."

 

Just replace the #RULENAME with something to identity the rule in Exchange Online and #PathToCSV needs to exist on the local machine you’re using to connect to Exchange Online with.

  • Thanks 1
Posted

Also note there is a maximum rule size, so you may need multiple rules, e.g. profanity a-f, profanity g-l and so on.

 

I would also build an exception DL in so that some people can swear

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...