Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help with SpamAssassin... not scoring correctly.
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
green sun
Guru
Guru


Joined: 04 Nov 2002
Posts: 325
Location: Wista, MA

PostPosted: Mon Aug 04, 2003 11:48 am    Post subject: Help with SpamAssassin... not scoring correctly. Reply with quote

ok. I have a nice setup with a gentoo machine running Postfix relaying to an Exchange server, and filtering spam using SpamAssassin through amavisd-new. Its great, works wonderful & all, but it is not scoring spam correctly.

I am using the SpamAssassin ebuild.

I have turned on full reporting in the headers, so that when mail gets through, I can see the scoring. SpamAssassin seems to have a default scoring of 6.3 for spam. Here's an example:
Code:
X-Spam-Status:  No, hits=5.2 tagged_above=3.0 required=6.3 tests=CLICK_BELOW, EXCUSE_15, HTML_70_80, HTML_FONT_BIG, HTML_FONT_COLOR_GRAY, HTML_IMAGE_ONLY_06, HTML_LINK_CLICK_HERE, HTML_MESSAGE, MAILTO_LINK, MAILTO_TO_REMOVE, MIME_HTML_ONLY, UNSUB_PAGE


You can see the "required" field says 6.3 tho I would like it to bounce at 5.0 I have the following
Code:
In /etc/mail/spamassassin/local.cf

required_hits 5.00


and have restarted postfix & amavisd. SpamAssassin is reading other rules from local.cf, so its not like it is being ignored. Anyone have any ideas?? Its frustrating, as several explicit spams are getting through the filter this way...
Back to top
View user's profile Send private message
Janne Pikkarainen
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1143
Location: Helsinki, Finland

PostPosted: Mon Aug 04, 2003 12:05 pm    Post subject: Reply with quote

In my /etc/mail/spamassassin/local.cf that line is

required_hits 5

... but hard to believe that "5.00" instead of "5" would make SA ignore the rule completely.

Do you have ~/.spamassassin/user_prefs file? If so, could it be that there would be lurking the evil "required_hits 6.3" line? :-)
Back to top
View user's profile Send private message
green sun
Guru
Guru


Joined: 04 Nov 2002
Posts: 325
Location: Wista, MA

PostPosted: Mon Aug 04, 2003 3:56 pm    Post subject: Reply with quote

Janne Pikkarainen wrote:
In my /etc/mail/spamassassin/local.cf that line is

required_hits 5

... but hard to believe that "5.00" instead of "5" would make SA ignore the rule completely.

Do you have ~/.spamassassin/user_prefs file? If so, could it be that there would be lurking the evil "required_hits 6.3" line? :-)


Its a pure relay server, so there are no users on it. I'm going to set it to 5 (not 5.00) & see if that helps... I just ran updatedb and there are no user_prefs files on the server at all (only templates), so I'm unsure where this score is coming from...
Back to top
View user's profile Send private message
Eisofen
n00b
n00b


Joined: 09 Dec 2002
Posts: 4

PostPosted: Tue Aug 05, 2003 8:34 am    Post subject: Reply with quote

take a look in amavisd.conf for
Code:
$sa_tag_level_deflt  = 4.0; # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 6.3; # add 'spam detected' headers at that level
$sa_kill_level_deflt = $sa_tag2_level_deflt; # triggers spam evasive actions


$sa_tag_level_deflt is for 'tagged_above'
$sa_tag2_level_deflt is for 'required'

amavisd-new doesn't care about the tag-levels in SA's local.cf..
Back to top
View user's profile Send private message
green sun
Guru
Guru


Joined: 04 Nov 2002
Posts: 325
Location: Wista, MA

PostPosted: Wed Aug 06, 2003 10:26 pm    Post subject: Reply with quote

Eisofen wrote:
take a look in amavisd.conf for
Code:
$sa_tag_level_deflt  = 4.0; # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 6.3; # add 'spam detected' headers at that level
$sa_kill_level_deflt = $sa_tag2_level_deflt; # triggers spam evasive actions


$sa_tag_level_deflt is for 'tagged_above'
$sa_tag2_level_deflt is for 'required'

amavisd-new doesn't care about the tag-levels in SA's local.cf..


Thank you, thank you, thank you.. I'll put it in & see how well it fares...

For reference, in case anyone else is puzzled by this, running SpamAssassin from the command prompt was correctly scoring inputted mails.. which is why I was confused...
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