[solved] SA bayes not working / autolearn inactive?
Martin
martin.lyberg at gmail.com
Thu Aug 24 12:26:02 IST 2006
Daniel Maher wrote:
> Thanks to everybody for your suggestions.
>
> I stopped MailScanner, and went through the directory tree manually, picking it over with a fine-toothed comb (as it were). I found that the parent directory of the bayes data directory did not have it's execute bit set for the group - only for the user.
>
> On the functioning mail servers, this group x bit was set. Voila.
>
> After making this change and re-starting MailScanner, SpamAssassin is now happily reading from and writing to the bayes database, and autolearn is active.
>
> Sometimes the best solutions are the most simple. :P
Daniel,
Since i ran over this topic, i want to make sure i have the correct
permissions aswell. I have loads of .expire files that won't disappear.
Made some changes yesterday to disable the auto-expiring within SA.
Can you tell me the correct permissions for the bayes directory? 0770?
Sample output from my directory:
# ls -al /var/spool/MailScanner/spamassassin/
total 776400
drwxrwx--- 2 postfix postfix 12288 2006-08-24 13:15 .
drwxr-xr-x 6 postfix postfix 4096 2006-04-24 17:07 ..
-rwxrwx--- 1 postfix postfix 671744 2006-08-24 13:14 auto-whitelist
-rwxrwx--- 1 postfix postfix 163840 2006-08-24 13:14 bayes_seen
-rwxrwx--- 1 postfix postfix 2613248 2006-08-24 13:15 bayes_toks
-rwxrwx--- 1 postfix postfix 2514944 2006-07-21 13:56 bayes_toks.expire10000
-rwxrwx--- 1 postfix postfix 2658304 2006-07-25 18:17 bayes_toks.expire1004
-rwxrwx--- 1 postfix postfix 2560000 2006-07-21 14:03 bayes_toks.expire10186
* snip *
Thank you
/ Martin
More information about the MailScanner
mailing list