From 932f404dae7938a1b141ec4e0462574df939b3ee Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 12 Nov 2007 10:31:37 +0000 Subject: [PATCH 1/1] fix userconf dir in update_sa; move bts only scores over git-svn-id: svn+ssh://svn.debian.org/svn/pkg-listmaster/trunk/spamassassin_config@97 0b7a5b0c-1f2c-0410-bd74-c376f8064c91 --- common/bts_scores | 17 +++++++++++++++++ common/scores | 10 ---------- update_spamassassin | 4 ++-- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/common/bts_scores b/common/bts_scores index 2f50064..dab7343 100644 --- a/common/bts_scores +++ b/common/bts_scores @@ -46,6 +46,9 @@ score HTML_70_80 1.682 1.379 1.310 1.254 score HTML_80_90 1.406 1.483 1.163 1.166 score HTML_90_100 1.500 1 1 1 +score HTML_WEB_BUGS 2.542 2.100 2.100 2.100 + + # and these get 1 point for being pr0n score PORN_16 3.896 3.896 3.166 3.799 score PORN_15 3.900 3.900 2.666 3.900 @@ -103,6 +106,20 @@ score RCVD_IN_SORBS_SOCKS 0.1 score RCVD_IN_SORBS_WEB 0.1 score RCVD_IN_SORBS_ZOMBIE 0.1 + +# The following were originally in common/scores but don't exist in +# the version of SA running on murphy. +# don't trust RBLs so much, esp. not dialup lists, moved them towards 0 +# --joy, 2003-07-19 +score RCVD_IN_RFCI 0.0 0.1 0.0 0.092 +score RCVD_IN_ORBS 0.0 0.0 0.0 0.114 +score RCVD_IN_UNCONFIRMED_DSBL 0.0 0.012 0.0 0.0 +score RCVD_IN_NJABL 0.0 0.053 0.0 0.344 +# relays.osirusoft.com is gone --joy, 2003-08-27 +# score RCVD_IN_OSIRUSOFT_COM 0 +score RCVD_IN_SORBS 0.2 + + # blarson 2004-11-16 # other network checks -- also disable # blarson 2005-10-29 enable again diff --git a/common/scores b/common/scores index 267657a..7bce81f 100644 --- a/common/scores +++ b/common/scores @@ -16,7 +16,6 @@ score LDOSUBSCRIBER -6 score FROM_AND_TO_SAME 4.097 3.826 4.197 3.464 # score MASS_EMAIL 2.0 2.0 2.0 2.482 # score BASE64_ENC_TEXT 4.354 3.643 3.544 3.768 -score HTML_WEB_BUGS 2.542 2.100 2.100 2.100 score EXCUSE_10 2.069 2.0 2.0 2.0 score MIME_HTML_ONLY 4 # score CLICK_BELOW 2.489 2.101 2.100 2 @@ -72,15 +71,6 @@ score BAYES_95 0 0 2 2 # score BAYES_99 0 0 3 3 score BAYES_99 4 -# don't trust RBLs so much, esp. not dialup lists, moved them towards 0 -# --joy, 2003-07-19 -score RCVD_IN_RFCI 0.0 0.1 0.0 0.092 -score RCVD_IN_ORBS 0.0 0.0 0.0 0.114 -score RCVD_IN_UNCONFIRMED_DSBL 0.0 0.012 0.0 0.0 -score RCVD_IN_NJABL 0.0 0.053 0.0 0.344 -# relays.osirusoft.com is gone --joy, 2003-08-27 -# score RCVD_IN_OSIRUSOFT_COM 0 -score RCVD_IN_SORBS 0.2 # sometimes kills off valid excite etc users, and doesn't detect much spam # so -1 point from 2.55 default --joy, 2003-07-19 score RCVD_FAKE_HELO_DOTCOM 0.791 1.606 1.264 2.434 diff --git a/update_spamassassin b/update_spamassassin index 00c540f..2610c9e 100755 --- a/update_spamassassin +++ b/update_spamassassin @@ -14,7 +14,7 @@ if [ "$HOSTNAME" == "rietz" ]; then USERCONF="bugs/user_prefs"; elif [ "$HOSTNAME" == "murphy" ]; then BASEDIR="/var/list/.etc"; - USERCONF="bugs/user_prefs"; + USERCONF="lists/user_prefs"; else echo "Unknown hostname '$HOSTNAME'"; exit 1; @@ -32,7 +32,7 @@ if [ $ORIGREV -ge $NEWREV ]; then exit 0; fi; -if [ -e "$SACONFIG/.update_spamassassin" ] && kill -0 $(cat "$SACONFIG/.update_spamassassin"); then +if [ -e "$SACONFIG/.update_spamassassin" ] && kill -0 $(cat "$SACONFIG/.update_spamassassin") >/dev/null 2>&1; then echo "Another update_spamassassin appears to be running" exit 1; else -- 2.39.2