> 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

You should give ownership back to your amavis user. If you have a bayes_path statement and are using amavisd-new, don't run sa-learn or spamassassin commands as root, always run them as your amavis user to prevent root from taking ownership. Even if you don't have a bayes_path statment, always run the commands as the amavis user so you will read or update the correct database. Amavisd-new expects the amavis user to own those files.

Gary V

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement

Reply via email to