Can i block mails with a given sentence/words

Questions and answers about how to do stuff
Post Reply
OttoMan28
Posts: 1
Joined: 10 Feb 2016 13:17

Can i block mails with a given sentence/words

Post by OttoMan28 »

Greetings

Is there a way where you can block out mails with given words or sentence
E.g. you will not allow a mail with the "I'm a lumberjack and I'm OK"

From time to time we see various 'ransom mail' which only can be detected on the laungauge / construction of the sentences.
and those are currently passing trough EFA as it is now. Currently we are been hammered, with various mails where they try to lure people to hit a link which will cause your files to be encrypted

Thanks
OM

PS I would never ever block a mail with a Monty Python song in it ;)
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Can i block mails with a given sentence/words

Post by shawniverson »

Yes, that is what Spamassassin is good at ;)

https://wiki.apache.org/spamassassin/WritingRules

Place them in /etc/mail/spamassassin/local.cf

:ugeek:
Post Reply