Bayes - No auto learn?

Kevin Spicer kevins at BMRB.CO.UK
Tue Nov 11 22:12:00 GMT 2003

On Tue, 2003-11-11 at 21:49, Pete Russell wrote:

>i have changed the path in /root/.spamassassin/user_prefs to use the
>MailScaner bayes dir, (same as path in
>/var/spool/MailScanner/spamassassin/bayes (without the _ on the end)

Thats part of the problem, your MailScanner doesn't run as root under
postfix (runs as postfix user).  So trying to use it as root is liable
to screw up permissions on the bayes files.

>[root at mail01 root]# ls -al /var/spool/MailScanner/spamassassin/
>total 636
>drwxrwsr-x    2 root     apache       4096 Nov 12 00:11 .
>drwxr-xr-x    5 root     root         4096 Nov 11 15:37 ..
>-rw-rw----    1 apache   apache      12288 Nov 11 23:25 bayes__seen
>-rw-rw----    1 apache   apache      24576 Nov 11 23:25 bayes__toks
>-rwxrwx---    1 root     apache      45056 Nov 12 00:11 bayes_seen
>-rwxrwx---    1 root     apache     651264 Nov 12 00:11 bayes_toks

And theres another part of the problem, none of these files are owned or
even writable by the postfix user.
Suggest you remove all these files (maybe move elsewhere) and make sure
that the directory is readable/writable/searchable by the postfix user

More information about the MailScanner mailing list