View previous topic :: View next topic |
Author |
Message |
green sun Guru
Joined: 04 Nov 2002 Posts: 325 Location: Wista, MA
|
Posted: Mon Aug 04, 2003 11:48 am Post subject: Help with SpamAssassin... not scoring correctly. |
|
|
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 |
|
|
Janne Pikkarainen Veteran
Joined: 29 Jul 2003 Posts: 1143 Location: Helsinki, Finland
|
Posted: Mon Aug 04, 2003 12:05 pm Post subject: |
|
|
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 |
|
|
green sun Guru
Joined: 04 Nov 2002 Posts: 325 Location: Wista, MA
|
Posted: Mon Aug 04, 2003 3:56 pm Post subject: |
|
|
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 |
|
|
Eisofen n00b
Joined: 09 Dec 2002 Posts: 4
|
Posted: Tue Aug 05, 2003 8:34 am Post subject: |
|
|
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 |
|
|
green sun Guru
Joined: 04 Nov 2002 Posts: 325 Location: Wista, MA
|
Posted: Wed Aug 06, 2003 10:26 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|