#1  
Old 3rd April 2008, 20:52
heinerlamprecht heinerlamprecht is offline
Member
 
Join Date: Apr 2007
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Bayes filter not working

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
Reply With Quote
Sponsored Links
  #2  
Old 4th April 2008, 16:57
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,778
Thanks: 821
Thanked 5,334 Times in 4,184 Posts
Default

Maybe the bayes files are corrupted. You can try to remove them from the users .spamassassin directory so spamassassin will create them again.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 4th April 2008, 22:30
heinerlamprecht heinerlamprecht is offline
Member
 
Join Date: Apr 2007
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #4  
Old 5th April 2008, 18:05
heinerlamprecht heinerlamprecht is offline
Member
 
Join Date: Apr 2007
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default 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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
network issues now it says "401 The web site is blocked by administrator" Check General 3 26th February 2008 14:22
php eating cpu shajazzi Server Operation 15 15th August 2007 01:19
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18
Transferring Hard Drive to new System latcarf Installation/Configuration 26 20th February 2007 18:51
php script injections Grizzly General 21 18th July 2006 08:55


All times are GMT +2. The time now is 12:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.