Re: SA-learn is it a problem
Ben Whyte wrote: Erm. Did someone mess with the bayes_path setting in your configuration? Also, are you running SA as a user whose home directory is just /home (ie: the user named nobody) The bayes config is pointing to /home/spamd Based on what you've told me so far, it is not. It is pointing to /home/.spamassassin/ What's the exact bayes_path statement you used, and what file is it in? (please post the exact one.. bayes_path is a VERY tricky option to use, because it requires more than just a path.) Its running as the user spamd. I noticed that the spamassassin_seen is not been touched by running sa-learn. However the size isnt changing. spamassassin_toks is changing size. Did you run sa-learn as the user spamd? Ben
RE: SA-learn is it a problem
Ben wrote: Whenever I run sa-learn it claims to learn from every message regardless of whether its being run immediately after being run on the same folder. This was happening to me as well, but I was not running sa-learn from the correct account. SpamAssassin was installed by user exim, so the bayes databases are also owned by exim. I was doing my sa-learn as user root. Once I did an su - exim, everything was fine. - jim -
Re: SA-learn is it a problem
On Monday 31 August 2009 17:08:10 Savoy, Jim wrote: Ben wrote: Whenever I run sa-learn it claims to learn from every message regardless of whether its being run immediately after being run on the same folder. This was happening to me as well, but I was not running sa-learn from the correct account. SpamAssassin was installed by user exim, so the bayes databases are also owned by exim. I was doing my sa-learn as user root. Once I did an su - exim, everything was fine. - jim - If you are using sql check the bayes_sql_override_username directive. Best regards, ./npf
Re: SA-learn is it a problem
On Mon, 31 Aug 2009, Ben Whyte wrote: Based on what you've told me so far, it is not. It is pointing to /home/.spamassassin/ What's the exact bayes_path statement you used, and what file is it in? (please post the exact one.. bayes_path is a VERY tricky option to use, because it requires more than just a path.) bayes_path/home/spamd/.spamassassin bayes_file_mode 0666 You need a file part to the bayes_path as well according to the docs: bayes_path /path/filename (default: ~/.spamassassin/bayes) This is the directory and filename for Bayes databases. Several databases will be created, with this as the base directory and filename, with _toks, _seen, etc. appended to the base. The default setting results in files called ~/.spamassassin/bayes_seen, ~/.spamassassin/bayes_toks, etc. auto_whitelist_path /home/spamd/auto-whitelist auto_whitelist_file_mode 0666 Its running as the user spamd. I noticed that the spamassassin_seen is not been touched by running sa-learn. However the size isnt changing. spamassassin_toks is changing size. Did you run sa-learn as the user spamd? No, I run it as root. Ben
Re: SA-learn is it a problem
On Mon, 31 Aug 2009, Duane Hill wrote: On Mon, 31 Aug 2009, Ben Whyte wrote: Based on what you've told me so far, it is not. It is pointing to /home/.spamassassin/ What's the exact bayes_path statement you used, and what file is it in? (please post the exact one.. bayes_path is a VERY tricky option to use, because it requires more than just a path.) bayes_path/home/spamd/.spamassassin bayes_file_mode 0666 You need a file part to the bayes_path as well according to the docs: bayes_path /path/filename (default: ~/.spamassassin/bayes) This is the directory and filename for Bayes databases. Several databases will be created, with this as the base directory and filename, with _toks, _seen, etc. appended to the base. The default setting results in files called ~/.spamassassin/bayes_seen, ~/.spamassassin/bayes_toks, etc. auto_whitelist_path /home/spamd/auto-whitelist auto_whitelist_file_mode 0666 Forgot this part. It is the same as bayes_path. It needs to include the file part as well: auto_whitelist_path /home/spamd/.spamassassin/file_name Its running as the user spamd. I noticed that the spamassassin_seen is not been touched by running sa-learn. However the size isnt changing. spamassassin_toks is changing size. Did you run sa-learn as the user spamd? No, I run it as root. Ben
SA-learn is it a problem
Hi Whenever I run sa-learn it claims to learn from every message regardless of whether its being run immediately after being run on the same folder. Is this normal or is this a problem ? Ben -- View this message in context: http://www.nabble.com/SA-learn-is-it-a-problem-tp25214711p25214711.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.
Re: SA-learn is it a problem
peperami97 wrote: Hi Whenever I run sa-learn it claims to learn from every message regardless of whether its being run immediately after being run on the same folder. Is this normal or is this a problem ? That would seem to be a problem. It shouldn't relearn from the same message.. are you using SQL based bayes, or the default db_file based bayes? If db_file, is your bayes_seen file being updated when you run sa-learn?
Re: SA-learn is it a problem
On 30/08/2009 20:30, Matt Kettler wrote: peperami97 wrote: Hi Whenever I run sa-learn it claims to learn from every message regardless of whether its being run immediately after being run on the same folder. Is this normal or is this a problem ? That would seem to be a problem. It shouldn't relearn from the same message.. are you using SQL based bayes, or the default db_file based bayes? If db_file, is your bayes_seen file being updated when you run sa-learn? I am using standard db_file based bayes as far as I was aware. I cant find a bayes_seen file anywhere on my system, where should it be ? Ben
Re: SA-learn is it a problem
By default: ~/.spamassassin/bayes_seen (ie: inside the .spamassassin subdierctory of your home directory) I found it I assume. Its in /home/.spamassassin/spamassassin_seen .spamassassin_seen is not getting updated .spamassasin_toks is getting updated Ben
Re: SA-learn is it a problem
Ben Whyte wrote: By default: ~/.spamassassin/bayes_seen (ie: inside the .spamassassin subdierctory of your home directory) I found it I assume. Its in /home/.spamassassin/spamassassin_seen .spamassassin_seen is not getting updated .spamassasin_toks is getting updated Ben Erm. Did someone mess with the bayes_path setting in your configuration? Also, are you running SA as a user whose home directory is just /home (ie: the user named nobody)