Re: Strange Errors from SA 3.0

2004-09-29 Thread Erik Wickstrom
So I've been doing some more reading, and I guess I should be stopping
SA before I run sa-learn --sync.  How do I stop it form the shell
prompt?  I am somewhat of a newbiew to linux administration

Thanks!


On Tue, 28 Sep 2004 15:04:34 -0400, David Modoski
[EMAIL PROTECTED] wrote:
 I don't think this got through to the list (I haven't seen it)..
 
 Just in case, here goes once more...
 
 I had a similar experience installing. Apparently I didn't let the original
 command finish converting the database to version 3. What I ended up doing
 is going into my bayes directory and deleting the .lock files including the
 ones with process ids (or move them if you do not want to take chances).
 Once all of the lock files are gone, run
 
 sa-learn --sync -D
 
 The sa-learn command will notice that the db is version 2 and starts to
 update it to version 3 (took a while for my machine).. Once it's updated,
 then it's only a matter of going through your .cf files.. Check for the
 warning:
 messages in the
 
 spamassassin --lint -D
 
 output..
 
 That took me a while, too.. For some reason any rules with descriptions  50
 generates a warning. They show up as errors at the end of the --lint -D..
 So, I went through each cf file and made sure my descriptions were  50
 characters long..
 
 -Original Message-
 From: Erik Wickstrom [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 27, 2004 8:49 PM
 To: users@spamassassin.apache.org
 Subject: Strange Errors from SA 3.0
 
 Hi all,
 
 I keep getting strange errors like this from spamassassin:
 
 sa-learn --dump magic
 bayes db version 2 is not able to be used, aborting! at
 /usr/lob/perl5/site_perl/5.8.1/Mail/SpamAssassin/BayesStore/DBM.pm
 line 160.
 ERROR: Bayes dump returned an error, please re-run with -D for more
 information
 
 Sometimes it is db version 0 instead of 2.
 
 Does anyone know what is going on?
 
 Thanks!
 Erik
 



Should I use RBL?

2004-09-29 Thread Erik Wickstrom
Hi All,

Just wanted to get your opinion on whether or not I should have RBL
activated?  I have read some mixed opinions so far.  Does it create
alot of false positives (vice versa)?

Thanks,
Erik


Re: Problem with Bayes learner.

2004-09-29 Thread Erik Wickstrom
Hi John,

I had a similar problem, and with the help of the list, I was able to
resolve it.  Here is what you have to do.

FIRST  kill spamd - if the process is running, it will mess everything up!
Second: run sa-learn --sync -D
this may take a little while, but it will upgrade your database to version 3.

Third: run sa-learn --showdots --mbox --spam your_spam_box

Do the same for ham.

Fourth: spamd -d

You should be back in business!  Good luck!

Erik


On Wed, 29 Sep 2004 15:56:27 -0400, John Stegenga [EMAIL PROTECTED] wrote:
 Hi everyone.  I've read the wiki and googled for this, and no such luck.
 
 I'm not using Spam Assassin 3.x yet.
 
 Server info:
 Redhat 9 kernel 2.4.26-ow3
 Perl 5.8.1
 
 This is a shared hosting server using Cpanel 9.4.1
 
 The mailer is EXIM
 exim
 (exim-4.42-60_cpanel_stmpcontrol_antivirus_rewrite_mailman2_maskedmailtrap_e
 xiscan)
 
 Until about 5 days ago, my Spam learner script was working.  I could never
 turn SA Autolearn on, but I could manually make a SPAM mailbox and a HAM
 mailbox and put stuff into them.  I currently have a library of about 6000
 spams that have been sent to my domain.
 
 Recently, however, SA stopped using bayes.  No more bayes scores none...
 
 Here is my error:
 
 bayes: bayes db version 0 is not able to be used, aborting! at
 /usr/lib/perl5/site_perl/5.8.1/Mail/SpamAssassin/BayesStore/DBM.pm line 160.
 
 Now, that's odd to me because it appears to learn email...
 Learned from 42 message(s) (5231 message(s) examined)
 
 The wiki says this error has to do with SA 3.0..  but I'm not using 3.0:
 X-Spam-Status: No, hits=0.0 required=4.5 tests=none autolearn=ham
 version=2.64
 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11)
 
 HELP?
 
 
 John Stegenga
 



Strange Errors from SA 3.0

2004-09-28 Thread Erik Wickstrom
Hi all,

I keep getting strange errors like this from spamassassin:

sa-learn --dump magic
bayes db version 2 is not able to be used, aborting! at
/usr/lob/perl5/site_perl/5.8.1/Mail/SpamAssassin/BayesStore/DBM.pm
line 160.
ERROR: Bayes dump returned an error, please re-run with -D for more information

Sometimes it is db version 0 instead of 2.

Does anyone know what is going on?

Thanks!
Erik


Bayes keeps forgetting learned messages

2004-09-28 Thread Erik Wickstrom
Hi all,

2 problems.

First, when I train SA on ham or spam, it seems to forget the counterpart.

Example:
sa-learn --mbox --showdots --ham inbox

Would add say 300 hams to the Bayes DB, but turns the spam count to 0
or a very small number and vice versa (sa-learn --dump magic)

I am also noticing that even though I upgraded to DB ver 3 with
sa-learn --sync -D, it keeps reverting back to ver 0 or 2.

Any suggestions?  I am starting to pull my hair out with this thing!

Erik


Berkley vs SQL for SA

2004-09-28 Thread Erik Wickstrom
Hi All,

Just wanted to get your opinion on whether I should be using the
default Berkely DB for Bayes and AWL or if I should use SQL - what are
the pro/cons?

Erik


Re: Bayes filter

2004-09-28 Thread Erik Wickstrom
If this is a new install, you won't feel much of a difference.  Bayes
however is an extremely powerful tool once it is trained.  Bayes
learns what your ham and spam emails look like, and then through the
magic of statistics, it classifies incoming messages as spam or ham
based on your history.  I would personally recommend not disabling it
- but do take the time to train it.  (note training takes a minumum of
200 spams and 200 hams - although to maximize effectivness you will
want to use up to 5000 of each.  If you don't have that many, don't
worry, Bayes will also auto learn)

Give it a try!

Erik


On Tue, 28 Sep 2004 13:05:51 +0400, Khalid Waheed [EMAIL PROTECTED] wrote:
 Dear all,
 
 What is the importance of bayes filter in spamassassin? it takes a lot of CPU 
 resource so I have disabled it and have not
 
 felt much difference.
 
 Thanks,
 
 Kha