Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Rules Du Jour update problem - lint? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
SweepingOar
Apprentice
Apprentice


Joined: 31 Dec 2003
Posts: 263
Location: LA

PostPosted: Sun Oct 30, 2005 7:17 pm    Post subject: Rules Du Jour update problem - lint? [SOLVED] Reply with quote

I just logged into my mail server and saw the following message to/from root:
Code:
Date: 30 Oct 2005 03:48:07 -0800
From: root@domain8673.net
To: root@domain8673.net
Subject: RulesDuJour/www: lint failed. Updates rolled back.

***WARNING***: spamassassin --lint failed.
Rolling configuration files back, not restarting SpamAssassin.
Rollback command is:  mv -f /etc/spamassassin/70_sare_header.cf
/etc/spamassassin/RulesDuJour/70_sare_header.cf.2; mv -f
/etc/spamassassin/RulesDuJour/70_sare_header.cf.20051030-0347 /etc/spamassassin/70_sare_header.cf; mv -f
/etc/spamassassin/70_sare_header0.cf /etc/spamassassin/RulesDuJour/70_sare_header0.cf.2; mv -f
/etc/spamassassin/RulesDuJour/70_sare_header0.cf.20051030-0347 /etc/spamassassin/70_sare_header0.cf; mv -f
/etc/spamassassin/70_sare_header_eng.cf /etc/spamassassin/RulesDuJour/70_sare_header_eng.cf.2; mv -f
/etc/spamassassin/RulesDuJour/70_sare_header_eng.cf.20051030-0347 /etc/spamassassin/70_sare_header_eng.cf;

Lint output: warning: description exists for non-existent rule SARE_HEAD_DATE_LONG1
warning: score set for non-existent rule SARE_HEAD_DATE_LONG1
lint: 2 issues detected.  please rerun with debug enabled for more information.


Is there a simple-ish fix for this? My friend who set up spamd/spamc for me doesn't seem to want to tangle with RDJ.
_________________
-SweepingOar


Last edited by SweepingOar on Fri Nov 04, 2005 3:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
ponch
n00b
n00b


Joined: 08 Jan 2004
Posts: 61

PostPosted: Sun Oct 30, 2005 8:26 pm    Post subject: Reply with quote

Check local.cf for SARE_HEAD_DATE_LONG1 score rule and comment it out. That will do the trick, i guess.
Back to top
View user's profile Send private message
SweepingOar
Apprentice
Apprentice


Joined: 31 Dec 2003
Posts: 263
Location: LA

PostPosted: Sun Oct 30, 2005 10:40 pm    Post subject: Reply with quote

Thanks. I grep'd that text.

This is what was in
Code:
/etc/spamassassin/70_sare_header.cf
:
Code:
header    SARE_HEAD_DATE_LONG1     Date =~ /.{50}/
describe  SARE_HEAD_DATE_LONG1     Date header has interesting length
score     SARE_HEAD_DATE_LONG1     -0.755
tflags    SARE_HEAD_DATE_LONG1     nice
#stype    SARE_HEAD_DATE_LONG1     ham
#hist     SARE_HEAD_DATE_LONG1     Developed by Bob Menschel from rule by Frederic Tarasevicius
#counts   SARE_HEAD_DATE_LONG1     40s/1483h of 327690 corpus (159737s/167953h RM) 07/27/05
#counts   SARE_HEAD_DATE_LONG1     2s/25h of 54176 corpus (16997s/37179h JH-3.01) 02/01/05
#counts   SARE_HEAD_DATE_LONG1     0s/1h of 20489 corpus (17189s/3300h MY) 01/30/05
#counts   SARE_HEAD_DATE_LONG1     0s/3h of 11052 corpus (6614s/4438h CT) 03/10/05
#counts   SARE_HEAD_DATE_LONG1     0s/28h of 6924 corpus (1403s/5521h ft) 07/27/05


This is what was in
Code:
/etc/spamassassin/RulesDuJour/70_sare_header.cf
:
Code:

meta      SARE_HEAD_DATE_LONG1a    __SARE_HEAD_DATE_L1a && !__SARE_HEAD_DATE_L1b
describe  SARE_HEAD_DATE_LONG1     Date header has interesting length
score     SARE_HEAD_DATE_LONG1     -0.500
tflags    SARE_HEAD_DATE_LONG1     nice
#stype    SARE_HEAD_DATE_LONG1     ham
#hist     SARE_HEAD_DATE_LONG1     Developed by Bob Menschel from rule by Frederic Tarasevicius
#hist     SARE_HEAD_DATE_LONG1     Reduce spam hits, Oct 13 2005, Bob Menschel
#counts   SARE_HEAD_DATE_LONG1     97s/3020h of 689155 corpus (348140s/341015h RM) 09/18/05
#counts   SARE_HEAD_DATE_LONG1     2s/25h of 54176 corpus (16997s/37179h JH-3.01) 02/01/05
#counts   SARE_HEAD_DATE_LONG1     0s/1h of 20489 corpus (17189s/3300h MY) 01/30/05
#counts   SARE_HEAD_DATE_LONG1     0s/3h of 11052 corpus (6614s/4438h CT) 03/10/05
#counts   SARE_HEAD_DATE_LONG1     0s/28h of 6924 corpus (1403s/5521h ft) 07/27/05


Does # comment lines? Should I comment everything with "DATE_LONG1" in it?
_________________
-SweepingOar
Back to top
View user's profile Send private message
ponch
n00b
n00b


Joined: 08 Jan 2004
Posts: 61

PostPosted: Sun Oct 30, 2005 10:55 pm    Post subject: Reply with quote

yep, # does line comment. I have Just grep'd my sa conf dir i found nothing about SARE_HEAD_LONG1. I thing you can easily comment everything related to "SARE_HEAD_DATE_LONG1"
Back to top
View user's profile Send private message
SweepingOar
Apprentice
Apprentice


Joined: 31 Dec 2003
Posts: 263
Location: LA

PostPosted: Tue Nov 01, 2005 12:23 pm    Post subject: Reply with quote

Thanks. At first it didn't work because I didn't find all the occurences, but last night I got it to run without the lint error and rollback. I just deleted any line with "HEADER_LONG1" in it in the following files.
Code:
/etc/mail/spamassassin
70_sare_header.cf
70_sare_header.cf~

/etc/mail/spamassassin/RulesDuJour
70_sare_header.cf
70_sare_header.cf.2
70_sare_header.cf~

_________________
-SweepingOar
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum