Results 1 to 3 of 3

Thread: Spamassassin rules

  1. #1
    Join Date
    Apr 2008
    Posts
    22
    Rep Power
    7

    Default 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.
    FreeBSD Rulzzz!

  2. #2
    Join Date
    Oct 2008
    Location
    Dahlonega, Ga
    Posts
    53
    Rep Power
    7

    Default

    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.

  3. #3
    Join Date
    Apr 2008
    Posts
    22
    Rep Power
    7

    Default

    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
    FreeBSD Rulzzz!

Similar Threads

  1. Zimbra 7 and SpamAssassin custom rules
    By Krishopper in forum Administrators
    Replies: 1
    Last Post: 03-05-2011, 08:26 PM
  2. Spamassassin: How to test homemade rules?
    By Tenshi in forum Administrators
    Replies: 11
    Last Post: 06-29-2010, 12:37 PM
  3. speed up the net
    By mcesari in forum Administrators
    Replies: 10
    Last Post: 04-25-2008, 11:24 AM
  4. Rules du Jour - spamassassin
    By sturgis in forum Administrators
    Replies: 10
    Last Post: 11-27-2007, 09:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •