Page 1 of 1

Can i block mails with a given sentence/words

Posted: 16 Feb 2016 20:21
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 ;)

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

Posted: 20 Feb 2016 21:02
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: