bayes fails learning, but only sometimes

Matt Kettler mkettler at EVI-INC.COM
Thu Dec 1 19:10:20 GMT 2005


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

IT Dept wrote:
> Hi Everyone,
> 
> Having a problem where sometimes I get errors when trying to teach bayes
> that a message is spam. MailWatch gives the following error:
> 
>    SA Learn: bayes: failed rename /etc/MailScanner/bayes/_journal to
>    /etc/MailScanner/bayes/_journal.old, bayes: failed rename
>    /etc/MailScanner/bayes/_journal to
>    /etc/MailScanner/bayes/_journal.old, Learned from 0 message(s) (1
>    message(s) examined)
> 
> 
> Yet other times, it works fine.
> 
> Is this a MailWatch issue (in which case, I'll ask over there), or a
> MailScanner one?

I assume you've got a bayes_path statement in one of your configs, since it's
pointing everything to /etc/MailScanner/bayes/

Obviously sa-learn is seeing this too.

questions:

1) do you have bayes_file_mode 0777? (global bayes DBs are unfortunately not
practical unless it's world rw. Since the mode is really a mask and gets used
for directories, it needs the 'x' bit as well)


2) do you have lock_method flock in spam.assassin.prefs.conf? Is there a
matching one in /etc/mail/spamassassin/*.cf? (sa-learn needs to use the same
lock_method as the SA inside MailScanner)

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!



More information about the MailScanner mailing list