On Sun, 21 Oct 2012, Joseph Acquisto wrote:
On 10/21/2012 at 6:39 PM, John Hardin <jhar...@impsec.org> wrote:
This typically indicates that you aren't running sa-learn while logged in
as the user that SA is running as.
Does sa-learn actually say it is learning tokens from the messages?
Hmm. If I su to spamfilter and run sa-learn --dump magic, I do see reasonable
results.
If I then try to learn ham or spam, it tells me permission denied trying to
access the mail directory.
Yeah, that can happen. One way around this for smaller installations is to
define a "site-wide" bayes rather than per-user bayes. Another way is to
have root move messages from users' training mailboxes to training
mailboxes owned by (e.g.) spamfilter before running sa-learn.
Trying to learn spam or ham as root runs without complaint, but appears
to be saying 0 learned.
That's odd, if your dump shows no tokens are learned. That's expected if
sa-learn remembers that it's seen the messages before.
There is also a size limit on the messages it will scan, are the sample
messages unusually large?
--
John Hardin KA7OHZ 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
-----------------------------------------------------------------------
The reason it took so long to get Bin Laden is that it took the
SEALs five years to swim that far into the desert. -- anon
-----------------------------------------------------------------------
143 days since the first successful private support mission to ISS (SpaceX)