Hi, since a couple of weeks the Bayes filter are not working anymore on my system. I tried a lot, but found no way to solve this problem. It is getting more and more annoying. Is there a chance to get any kind of log- or error-messages of what is going wrong? How can I get the filters back working? All the problems started when I tried to activate sa-learn (see previous post). Any help is very much appreciated. Heiner
Maybe the bayes files are corrupted. You can try to remove them from the users .spamassassin directory so spamassassin will create them again.
Well, deleting the user specific DB files did nothing. So I tried to backup and restore the database. The output of sa-learn looks good: Code: dbg: bayes: parsed 573205 lines dbg: bayes: created database with 181981 tokens based on 139029 spam messages and 252192 ham messages But even this had no effect. What are the file permissions supposed to look for the bayes files? Heiner
Filter working again, how to enable sa-learn? Hi, okay, I've updated ISPconfig now, to get a clean system status. The bayes filter are working again. Now I would like to enable sa-learn again. In my first attempt, it lead to all my troubles with spamassassin and bayes, so I would like to ask for the best way to do this. The idea is to have two users, who are able to copy spam and ham mail into dedicated mailfolders. Than there should be a cron job, which calls sa-learn and deletes the messages afterwards. Is there anything, I should take into account? User rights, whatever, ...? The scripts I've previously used are invoked by root and look like this: Code: #! /bin/bash SA_LEARN_CMD=/home/admispconfig/ispconfig/tools/spamassassin/usr/bin/sa-learn SA_CONF_DIR=/home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin SPAM_DIR=/srv/www/webX/user/webX_user/Maildir/.spam/cur/ HAM_DIR=/srv/www/webX/user/webX_user/Maildir/.ham/cur/ $SA_LEARN_CMD --spam -C $SA_CONF_DIR $SPAM_DIR $SA_LEARN_CMD --ham -C $SA_CONF_DIR $HAM_DIR for i in `find $SPAM_DIR* -mmin +75`; do rm $i done for i in `find $HAM_DIR* -mmin +75`; do rm $i done Thanks, Heiner