You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Henry Leparskas <hl...@uwo.ca> on 2004/04/25 19:44:49 UTC

sa-learn still not putting Bayes files to system-wide area

I'm having trouble convincing 'sa-learn' to put the Bayes database files where I
want them. The wiki and SA docs are a bit fuzzy about this.

As 'user', I 'su to root'. Then I run it;

sa-learn -C /etc/mail/spamassassin --siteconfigpath=/etc/mail/spamassassin
--showdots --mbox --spam /home/user/mail/spam

And, voila, the database files end up in /home/user/.spamassassin.
I wanted them in /etc/mail/spamassassin.

I suspect that the -C and --siteconfigpath flags aren't meant for this, as they
seem to tell spamassassin where to find config files, and not where to put the
learned database files.

Can anyone shed some light on this?

Thanks in advance,

Henry


Re: sa-learn still not putting Bayes files to system-wide area

Posted by Henry Leparskas <hl...@astro.uwo.ca>.
>
> > sigh, the Bayes tests are now scoring 5.4 for BAYES_99 again.
> > I've only given 500 spams and 700 hams to learn from.
> > I wonder why it goes a bit crazy like that.
>
> what wrong with this scoring? its defined here:
>
> 50_scores.cf: score BAYES_99 0 0 5.400 5.400
>
I'm concerned because of the false positives with this score. Many of
these forum emails are now going in there! I manually checked all of the
ham and spam that was used with 'sa-learn'. The ham emails were hand
checked so as to contain no news or
talk of anti-spam.  Not sure what's going on. I'll keep an eye on it
today.

Henry


> [...]
> > > Not sure why it didn't create a journal file.
> > > I've got:
> > >
> > > auto_learn		1
> > > bayes_auto_learn	1
> > > learn_to_journal	1
>
> bayes_learn_to_journal is the correct command.
>
> regards,
> Matthias
>

Re: sa-learn still not putting Bayes files to system-wide area

Posted by Matthias Fuhrmann <Ma...@stud.uni-hannover.de>.
On Sun, 25 Apr 2004, Henry Leparskas wrote:

> sigh, the Bayes tests are now scoring 5.4 for BAYES_99 again.
> I've only given 500 spams and 700 hams to learn from.
> I wonder why it goes a bit crazy like that.

what wrong with this scoring? its defined here:

50_scores.cf: score BAYES_99 0 0 5.400 5.400

[...]
> > Not sure why it didn't create a journal file.
> > I've got:
> >
> > auto_learn		1
> > bayes_auto_learn	1
> > learn_to_journal	1

bayes_learn_to_journal is the correct command.

regards,
Matthias

Re: sa-learn still not putting Bayes files to system-wide area

Posted by Henry Leparskas <hl...@astro.uwo.ca>.
sigh, the Bayes tests are now scoring 5.4 for BAYES_99 again.
I've only given 500 spams and 700 hams to learn from.
I wonder why it goes a bit crazy like that.

Henry

> Oh, I now see how it works.
> Using;
>
> bayes_path	/etc/mail/spamassassin
>
> tells spamassassin to make files:
>
> /etc/mail/spamassassin_seen
> /etc/mail/spamassassin_toks
>
> while doing its learning.
>
> Not sure why it didn't create a journal file.
> I've got:
>
> auto_learn		1
> bayes_auto_learn	1
> learn_to_journal	1
>
> Henry
>
>
> > Thanks Matthias, I had commented that line out during debugging!!
> > I'll give it another try.
> >
> > Henry
> >
> > On Sun,
> > 25 Apr 2004, Matthias Fuhrmann wrote:
> >
> > > On Sun, 25 Apr 2004, Henry Leparskas wrote:
> > >
> > > > I'm having trouble convincing 'sa-learn' to put the Bayes database files where I
> > > > want them. The wiki and SA docs are a bit fuzzy about this.
> > > >
> > > > As 'user', I 'su to root'. Then I run it;
> > > >
> > > > sa-learn -C /etc/mail/spamassassin --siteconfigpath=/etc/mail/spamassassin
> > > > --showdots --mbox --spam /home/user/mail/spam
> > > >
> > > > And, voila, the database files end up in /home/user/.spamassassin.
> > > > I wanted them in /etc/mail/spamassassin.
> > > >
> > > > I suspect that the -C and --siteconfigpath flags aren't meant for this, as they
> > > > seem to tell spamassassin where to find config files, and not where to put the
> > > > learned database files.
> > > >
> > > > Can anyone shed some light on this?
> > >
> > > did you define bayes_path /PATH_TO_SYSTEMWIDE_DIRECTORY/bayes in your
> > > local.cf ?
> > >
> > > regards,
> > > Matthias
> > >
> >
>

Re: sa-learn still not putting Bayes files to system-wide area

Posted by Henry Leparskas <hl...@astro.uwo.ca>.
Oh, I now see how it works.
Using;

bayes_path	/etc/mail/spamassassin

tells spamassassin to make files:

/etc/mail/spamassassin_seen
/etc/mail/spamassassin_toks

while doing its learning.

Not sure why it didn't create a journal file.
I've got:

auto_learn		1
bayes_auto_learn	1
learn_to_journal	1

Henry


> Thanks Matthias, I had commented that line out during debugging!!
> I'll give it another try.
>
> Henry
>
> On Sun,
> 25 Apr 2004, Matthias Fuhrmann wrote:
>
> > On Sun, 25 Apr 2004, Henry Leparskas wrote:
> >
> > > I'm having trouble convincing 'sa-learn' to put the Bayes database files where I
> > > want them. The wiki and SA docs are a bit fuzzy about this.
> > >
> > > As 'user', I 'su to root'. Then I run it;
> > >
> > > sa-learn -C /etc/mail/spamassassin --siteconfigpath=/etc/mail/spamassassin
> > > --showdots --mbox --spam /home/user/mail/spam
> > >
> > > And, voila, the database files end up in /home/user/.spamassassin.
> > > I wanted them in /etc/mail/spamassassin.
> > >
> > > I suspect that the -C and --siteconfigpath flags aren't meant for this, as they
> > > seem to tell spamassassin where to find config files, and not where to put the
> > > learned database files.
> > >
> > > Can anyone shed some light on this?
> >
> > did you define bayes_path /PATH_TO_SYSTEMWIDE_DIRECTORY/bayes in your
> > local.cf ?
> >
> > regards,
> > Matthias
> >
>

Re: sa-learn still not putting Bayes files to system-wide area

Posted by Henry Leparskas <hl...@astro.uwo.ca>.
Thanks Matthias, I had commented that line out during debugging!!
I'll give it another try.

Henry

On Sun,
25 Apr 2004, Matthias Fuhrmann wrote:

> On Sun, 25 Apr 2004, Henry Leparskas wrote:
>
> > I'm having trouble convincing 'sa-learn' to put the Bayes database files where I
> > want them. The wiki and SA docs are a bit fuzzy about this.
> >
> > As 'user', I 'su to root'. Then I run it;
> >
> > sa-learn -C /etc/mail/spamassassin --siteconfigpath=/etc/mail/spamassassin
> > --showdots --mbox --spam /home/user/mail/spam
> >
> > And, voila, the database files end up in /home/user/.spamassassin.
> > I wanted them in /etc/mail/spamassassin.
> >
> > I suspect that the -C and --siteconfigpath flags aren't meant for this, as they
> > seem to tell spamassassin where to find config files, and not where to put the
> > learned database files.
> >
> > Can anyone shed some light on this?
>
> did you define bayes_path /PATH_TO_SYSTEMWIDE_DIRECTORY/bayes in your
> local.cf ?
>
> regards,
> Matthias
>

Re: sa-learn still not putting Bayes files to system-wide area

Posted by Matthias Fuhrmann <Ma...@stud.uni-hannover.de>.
On Sun, 25 Apr 2004, Henry Leparskas wrote:

> I'm having trouble convincing 'sa-learn' to put the Bayes database files where I
> want them. The wiki and SA docs are a bit fuzzy about this.
>
> As 'user', I 'su to root'. Then I run it;
>
> sa-learn -C /etc/mail/spamassassin --siteconfigpath=/etc/mail/spamassassin
> --showdots --mbox --spam /home/user/mail/spam
>
> And, voila, the database files end up in /home/user/.spamassassin.
> I wanted them in /etc/mail/spamassassin.
>
> I suspect that the -C and --siteconfigpath flags aren't meant for this, as they
> seem to tell spamassassin where to find config files, and not where to put the
> learned database files.
>
> Can anyone shed some light on this?

did you define bayes_path /PATH_TO_SYSTEMWIDE_DIRECTORY/bayes in your
local.cf ?

regards,
Matthias