On Jul 12, 2015 5:32 PM, "James" <bjloc...@lockie.ca> wrote: > > > > On 07/12/15 00:22, ch...@antennex.com wrote: >>> >>> >>> >>> Why not run: >>> sa-learn --dump magic >>> >>> >>> And you'll see the number of spams vs tyhe number of hams learned? > > The problem is finding out which directory the running spamassassin uses, I can't seen to train the one it expects. > Just as a FYI, some distros tend to package programs with non-standard file paths. Also, if you run it command line in debug mode,
spamassassin -D -t < spam2.eml it should tell you the config files it used. > I put this in my /etc/spamassassin/local.cf: > bayes_path /var/spamassassin/bayes_db/bayes > bayes_file_mode 0777 > and it seems to pick up the right db. > > $ sudo sa-learn --dump magic > 0.000 0 3 0 non-token data: bayes db version > 0.000 0 6794 0 non-token data: nspam > 0.000 0 3115 0 non-token data: nham > 0.000 0 142011 0 non-token data: ntokens > 0.000 0 1414709537 0 non-token data: oldest atime > 0.000 0 1436703769 0 non-token data: newest atime > 0.000 0 0 0 non-token data: last journal sync atime > 0.000 0 1436684568 0 non-token data: last expiry atime > 0.000 0 22118400 0 non-token data: last expire atime delta > 0.000 0 206830 0 non-token data: last expire reduction count > > $ sudo sa-learn --dump magic --db /var/spamassassin/bayes_db/ > 0.000 0 3 0 non-token data: bayes db version > 0.000 0 6794 0 non-token data: nspam > 0.000 0 3115 0 non-token data: nham > 0.000 0 142011 0 non-token data: ntokens > 0.000 0 1414709537 0 non-token data: oldest atime > 0.000 0 1436703769 0 non-token data: newest atime > 0.000 0 0 0 non-token data: last journal sync atime > 0.000 0 1436684568 0 non-token data: last expiry atime > 0.000 0 22118400 0 non-token data: last expire atime delta > 0.000 0 206830 0 non-token data: last expire reduction count > > Time will tell if the Chinese picture spam is gone. Good luck! > >>> >>> I always heard it best to try and even out those two. >>> >>> >>> At the moment, my new server's bayes is 8x ham to spam. Thus I need more spam. >>> >>> >>> /Jason > >