Thank you very much John, I tried this chown -R vscan:vscan /var/spool/amavis/.spamassassin and now bayes score are showing up in the headers. Also, i tried the right sa- database.
Thanks a bunch. On Wed, Dec 12, 2012 at 3:12 PM, John Hardin <jhar...@impsec.org> wrote: > On Wed, 12 Dec 2012, motty cruz wrote: > > Thanks again for your prompt reply, the command i ran as root user >> when i did su vscan user was unable to open spam messages from directory >> >> I'm not sure how to fix this problem but you pointed me in the right >> direction. >> > > Where are the database files? > > > You wrote: > >> I copied the database from a heathy system >> > > If you have the default per-user Bayes config, you will probably want to > move the files to the vscan user's home directory and set permissions such > that the vscan user can read and write them. > > Then, future training will need to be done as the vscan user. > > If it's a global Bayes config, just set the file permissions such that the > vscan user can get to them and read them. If you're doing autolearn, then > the vscan user will also need to be able to write to them. With a global > config, you *can* run sa-learn as root and it will update the correct > files, but the permissions have to be open enough for SA to read them at > scan time. > > > Thanks >> >> On Wed, Dec 12, 2012 at 2:24 PM, John Hardin <jhar...@impsec.org> wrote: >> >> On Wed, 12 Dec 2012, motty cruz wrote: >>> >>> Thanks John, >>> >>>> It does not show up in any message at all! >>>> here is the sa-learn --dump magic command: >>>> # sa-learn --dump magic >>>> 0.000 0 4680 0 non-token data: nspam >>>> 0.000 0 88357 0 non-token data: nham >>>> >>> >>> Ok, so that database has 4k spam and 88k ham tokens, it should be active. >>> >>> any idea? >>> >>>> >>>> >>> Apart from "too few tokens" the most common problem is "training to a >>> database that SA is not using". In the default SA configuration you have >>> to >>> train the database as the same user that SA is running under, so that the >>> files get created in the correct place. >>> >>> What user is SA running as? >>> >>> What user did you run the sa-learn --dump command as? >>> >>> Have you overridden the default per-user Bayes database config to a >>> systemwide shared Bayes database config? >>> >> > -- > John Hardin KA7OHZ > http://www.impsec.org/~**jhardin/<http://www.impsec.org/~jhardin/> > jhar...@impsec.org FALaholic #11174 pgpk -a jhar...@impsec.org > key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79 > ------------------------------**------------------------------** > ----------- > Mine eyes have seen the horror of the voting of the horde; > They've looted the fromagerie where guv'ment cheese is stored; > If war's not won before the break they grow so quickly bored; > Their vote counts as much as yours. -- Tam > > ------------------------------**------------------------------** > ----------- > 3 days until Bill of Rights day >