>> Hello everyone, >> >> first of all, the setup: debian/sarge, amavisd-new, spamassassin >> 3.0.3, clamav-daemon, postfix. The server is a relay only, no mail is >> delivered >> locally, everything is sent to a "real" mail server. >> >> I have trained bayes with some 500 to 600 spams and about 300 hams, so >> spamassassin -D --lint says that bayes will be used. Still, there is >> NO sign of bayes working, even amavisd's reports don't mention it, >> only the default SA rules being hit. >> >> If I run SA from command line with one of the spam messages that made >> it to my mailbox, it gives them a pretty high score, and I can see that >> the bayes_99 rule was hit. >> >> Is this an issue with amavis, or what? >> >> Any clues will be appreciated.
> Make sure the .spamassassin folder is linked/located correctly. > If you trained your bayes engine with the root account (for instance) > but amavisd is running as the user amavis, then the bayes_* files won't > be used. > You need to make sure amavisd use the correct files. > Cheers, This could be right. My /etc/spamassassin/local.cf is now: required_score 5.5 use_dcc 0 use_razor2 0 use_pyzor 0 use_bayes 1 bayes_path /var/spool/amavis/.spamassassin/ bayes_file_mode 0666 skip_rbl_checks 1 ok_languages all ok_locales all score BAYES_99 6.5 The line bayes_file_mode was missing, so all files in /var/spool/amavis/.spamassassin were -rw----- with owner root. Let's see what happens... :) Thank you for your help! Gabor Sipos