spamassassin problems plesk 7.5.4 + fedora (SOLVED)

Forum for getting help with Project Gamera, Spamassassin, Clamav, qmail-scanner and other anti-spam tools.
vbslim
Forum User
Forum User
Posts: 11
Joined: Wed May 25, 2005 7:41 pm

spamassassin problems plesk 7.5.4 + fedora (SOLVED)

Unread post by vbslim »

I cant find the solution to my problem

I'm tring to get spamassassin working with bayes and auto learn

My box is fedore core 2 with plesk 7.5.4

I have installed on my box
spamassassin-3.1.0-4.rhfc2.art
psa-spamassassin-7.5.4-fc2.build75050927.15
qmail-scanner-1.25-9.rhfc2.art
clamav-0.87.1-2.rhfc2.art
clamav-devel-0.87.1-2.rhfc2.art

I upgraded spamassassin
Heres a sample of my headers before the upgrade

Code: Select all

Received: from localhost by mine.com
with SpamAssassin (2.63 2004-01-11);
Wed, 28 Dec 2005 16:14:46 -0600
From: "Gale Battle" <Phammp@go2.pl>
To: me@mine.com
Subject: *****SPAM***** HIGH * Find a good friend, a hot lay, true love . Youve found it all,,..clientele
Date: Wed, 28 Dec 2005 16:14:37 -0600
Message-Id: <hJs6mXe7WQZoVgp5t01RQPhammp@go2.pl>
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on
me@mine.com
X-Spam-Level: **********
X-Spam-Status: Yes, hits=10.8 required=7.0 tests=FORGED_MUA_OUTLOOK,
HTML_60_70,HTML_IMAGE_ONLY_06,HTML_MESSAGE,MIME_BASE64_ILLEGAL,
MIME_MISSING_BOUNDARY,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DYNABLOCK,
RCVD_IN_SORBS autolearn=no version=2.63
MIME-Version: 1.0
and after the upgrade

Code: Select all

Return-Path: <ijolic@mosmakler.ru>
Delivered-To: 4-me@mine.com
Received: (qmail 7632 invoked by uid 2520); 28 Dec 2005 16:39:35 -0600
Received: from 209.124.36.116 by mine.com (envelope-from <ijolic@mosmakler.ru>, uid 2020) with qmail-scanner-1.25st
(spamassassin: 3.1.0. perlscan: 1.25st.
Clear:RC:0(209.124.36.116):SA:1(21.0/4.0):.
Processed in 2.106024 secs); 28 Dec 2005 22:39:35 -0000
X-Spam-Status: Yes, hits=21.0 required=4.0
X-Spam-Level: +++++++++++++++++++++
Received: from unknown (HELO mosmakler.ru) (209.124.36.116)
by me@mine with SMTP; 28 Dec 2005 16:39:33 -0600
Received: from eaymfcx (26.233.122.92)
by mosmakler.ru; Mon, 15 Aug 2005 11:18:36 +0400
Date: Mon, 15 Aug 2005 11:18:36 +0400
From: "Îëåã Âàðëàøêèí" <ijolic@mosmakler.ru>
X-Mailer: The Bat! (v2.01)
Reply-To: "Ïåòðåíêî" <wrwkb@netcity.ru>
X-Priority: 3 (Normal)
Message-ID: <47882087.20050316094912@mosmakler.ru>
To: slim <me@mine.com>
Subject: *****SPAM***** HIGH * !!! Âñåãî çà 5$ îðèãèíàëüíûé ïîäàðîê ê Íîâîìó Ãîäó !!!
MIME-Version: 1.0
Here is my /etc/mail/local.cf

Code: Select all

required_hits 4
rewrite_subject 1
subject_tag ***SPAM***:
check_mx_attempts 2
check_mx_delay 5
dns_available yes
report_safe 1
use_terse_report 1
use_bayes 1
score RCVD_IN_BL_SPAMCOP_NET 0 2.25 0 1.50
score RCVD_IN_MAPS_RBL 1
score FAKED_UNDISC_RECIPS 2.899 2.694 2.800 2.700
score GAPPY_SUBJECT 2.326 1.316 2.696 2.270
score FROM_OFFERS 4.300 3.932 4.095 4.100
score ADVERT_CODE 2.899 1.578 2.633 1.817
score BAYES_60 0 0 1.250 1.250
score BAYES_70 0 0 2.000 2.000
score BAYES_80 0 0 4.250 4.250
score BAYES_90 0 0 5.500 5.500
score BAYES_99 0 0 7.750 7.750
bayes_auto_learn 1
bayes_auto_learn_threshold_nonspam 0.3
bayes_auto_learn_threshold_spam 4.0
auto_learn 1
auto_learn_threshold_spam 5
auto_learn_threshold_nonspam 0
bayes_expiry_max_db_size 10240000
skip_rbl_checks 0
ok_languages all
ok_locales all
I removed these lines from the top of local.cf as I use squirrelmail not horde

Code: Select all

user_scores_dsn                 DBI:mysql:horde:localhost
user_scores_sql_username        horde
user_scores_sql_table           userpref
user_scores_sql_password        afhuwekbbbbvsl
After the upgrades and installs of all these I did a
/usr/bin/qmail-scanner-reconfigure


Now if I do a
sa-learn --dump magic -C /var/qmail/.spamassassin/

I get:

ERROR: Bayes dump returned an error, please re-run with -D for more information

So I do a:

sa-learn --dump magic -D /var/qmail/.spamassassin/

I get

Code: Select all

[8939] info: config: failed to parse line, skipping: rewrite_subject 1
[8939] info: config: failed to parse line, skipping: subject_tag ***SPAM***:
[8939] info: config: failed to parse line, skipping: check_mx_attempts 2
[8939] info: config: failed to parse line, skipping: check_mx_delay 5
[8939] info: config: failed to parse line, skipping: use_terse_report 1
[8939] info: config: failed to parse line, skipping: auto_learn 1
[8939] info: config: failed to parse line, skipping: auto_learn_threshold_spam 5
[8939] info: config: failed to parse line, skipping: auto_learn_threshold_nonspam 0
[8939] info: config: failed to parse, now a plugin, skipping: ok_languages all
ERROR: Bayes dump returned an error, please re-run with -D for more information
I'm going to add this:
http://sandgnat.com/rdj/rules_du_jour
After I sort out these problems

If I do a ps aux |grep spam

I get:

Code: Select all

root      6618  0.0  3.3 30508 25960 ?       S    16:39   0:00 /usr/bin/spamd -d -u qmailq -q -x -c -H /var/qmail
qmailq    6621  0.0  3.5 31948 27404 ?       S    16:39   0:01 spamd child
qmailq    6622  0.0  3.4 31276 26644 ?       S    16:39   0:00 spamd child
root      8947  0.0  0.0  4632  600 pts/0    R    17:24   0:00 grep spam
Any Idea about these errors and how I should preceede??

Thanks for any and all help
Slim
Last edited by vbslim on Wed Dec 28, 2005 11:19 pm, edited 2 times in total.
vbslim
Forum User
Forum User
Posts: 11
Joined: Wed May 25, 2005 7:41 pm

Unread post by vbslim »

ok... I was using the old 2.x style config...

After changing this to 3.x style it works without a problem....

I still would like to know what the hord mysq was all about


thanks
vbslim
Forum User
Forum User
Posts: 11
Joined: Wed May 25, 2005 7:41 pm

Unread post by vbslim »

heres a nice tool for basic 3.x config generation

http://www.yrex.com/spam/spamconfig.php
Post Reply