-
Spamassassin rules
Hello people ,
I'd like to stop some spammers and I added these rules in
Code:
/opt/zimbra/conf/salocal.cf.in
Code:
header LOCAL_DEMONSTRATION_SUBJECT1 Subject =~ /^employment opportunity$/i
describe LOCAL_DEMONSTRATION_SUBJECT1 Subject starts: Employment opportunity
score LOCAL_DEMONSTRATION_SUBJECT1 9.0
header LOCAL_DEMONSTRATION_SUBJECT2 Subject =~ /^Employment opportunity$/
describe LOCAL_DEMONSTRATION_SUBJECT2 Subject starts: Employment opportunity
score LOCAL_DEMONSTRATION_SUBJECT2 9.0
The subject in spam e-mail addresses is always: Employment opportunity
But there is no effect with these rules.
Please help my with this case. Howto stop e-mail with this subject ?
Thanks a lot.
-
Put this in /opt/zimbra/conf/spamassassin/local.cf
Code:
header SUBJ_S00 Subject =~ /\bthe-subject-i-want-to-stop\b/i
score SUBJ_S00 77.0
And then make a copy of the local.cf to local.cf-default or something so you don't lose it on upgrades. This works fine for me.
zmantispamctl stop & start
Good to go.
-
Thank you very much n4bbq It's works for me to :) The problem was with the values of score :) I changed to 16 and there is no problem anymore :)
It works fro me with this rule:
Code:
header TURN_LEFT1 ALL =~ /^Job opportunity - hurry to apply!/
score TURN_LEFT1 16.0