sa-update should have picked up the mailspike rules. I suppose
you did something to remove updates_spamassassin_org/20_mailspike.cf.
And then you did nothing to the updates_spamassassin_org/72_scores.cf
scores file to remove scores for mailspike.

If you wanted mailspike out of there the better approach is to build
a 99_myoverrides.cf file that includes "score XXXX 0" scores. That
survives updates and is processed last so it overrides earlier
settings that might override.

{o.o}

On 2012/12/26 07:55, Cecil Westerhof wrote:
In the past I asked this question, but I was told that it was because
of my own rules. I never defined my own rules, So I try the question
again.

I have the following script to update SpamAssassin:
     #!/usr/bin/env bash

     declare -r GREP_REGEX='not installed\|warning'
     declare -r LOG_FILE='sa-update.log'

     declare PID
     declare retVal

     cd
     sa-update -D 2>${LOG_FILE}
     retVal=${?}
     case ${retVal} in
       0)
         echo "Updated SpamAssassin rules"
         /etc/init.d/spamd reload
         ;;
       1)
         echo "There where no updates for SpamAssassin rules"
         ;;
       2)
         echo "There are updates, but lint check failed"
         ;;
       3)
         echo "Unknown error"
         ;;
       *)
         echo "Error while trying to download SpamAssasin rules"
         ;;
     esac
     echo
     grep "${GREP_REGEX}" ${LOG_FILE}

When the rules are updated, I get something like:
     Updated SpamAssassin rules
     Reload service spamd ..done

     Dec 26 03:04:13.110 [17074] dbg: config: warning: score set for 
non-existent rule RCVD_IN_MSPIKE_H4
     Dec 26 03:04:13.111 [17074] dbg: config: warning: score set for 
non-existent rule RCVD_IN_MSPIKE_WL
     Dec 26 03:04:13.111 [17074] dbg: config: warning: score set for 
non-existent rule HK_NAME_FM_MR_MRS
     Dec 26 03:04:13.111 [17074] dbg: config: warning: score set for 
non-existent rule RCVD_IN_MSPIKE_L5
     Dec 26 03:04:13.111 [17074] dbg: config: warning: score set for 
non-existent rule RCVD_IN_MSPIKE_H3
     Dec 26 03:04:13.118 [17074] dbg: config: warning: score set for 
non-existent rule RCVD_IN_MSPIKE_H2
     Dec 26 03:04:13.118 [17074] dbg: config: warning: score set for 
non-existent rule RCVD_IN_MSPIKE_ZBI
     Dec 26 03:04:13.119 [17074] dbg: config: warning: score set for 
non-existent rule RCVD_IN_MSPIKE_L2
     Dec 26 03:04:13.119 [17074] dbg: config: warning: score set for 
non-existent rule HK_NAME_MR_MRS
     Dec 26 03:04:13.119 [17074] dbg: config: warning: score set for 
non-existent rule RCVD_IN_MSPIKE_BL
     Dec 26 03:04:13.119 [17074] dbg: config: warning: score set for 
non-existent rule RCVD_IN_MSPIKE_L4
     Dec 26 03:04:13.120 [17074] dbg: config: warning: score set for 
non-existent rule RCVD_IN_MSPIKE_H5
     Dec 26 03:04:13.120 [17074] dbg: config: warning: score set for 
non-existent rule URIBL_SBL_A
     Dec 26 03:04:13.120 [17074] dbg: config: warning: score set for 
non-existent rule RCVD_IN_MSPIKE_L3

So it looks to me that rules that are not used anymore are deleted,
but there scoring not.

Should the scorings not be deleted also?

--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Reply via email to