Great guess! I was running as root before (sudo.) Here are the results when I 
run the command as the site-wide user.

sa-learn --dump magic

0.000          0          3          0  non-token data: bayes db version
0.000          0        329          0  non-token data: nspam
0.000          0      42903          0  non-token data: nham
0.000          0     158973          0  non-token data: ntokens
0.000          0 1204946608          0  non-token data: oldest atime
0.000          0 1205337646          0  non-token data: newest atime
0.000          0 1217631298          0  non-token data: last journal sync atime
0.000          0 1205335826          0  non-token data: last expiry atime
0.000          0     417421          0  non-token data: last expire atime delta
0.000          0          0          0  non-token data: last expire reduction 
count

Thanks!

Also, I'm just using the flat files (non-sql.)

I'm still confused though...a "$ps aux | grep spam" reveals

/usr/sbin/spamd --create-prefs --max-children 5 --helper-home-dir -x 
--virtual-config-dir=/etc/mail/spamassassin --username spamassassin -d 
--pidfile=/var/run/spamd.pid

Of course my manual sa-learns were altering the bayes files under 
/etc/mail/spamassassin whereas the bayes files spam was writing to were under 
/home/spamassassin/.spamassassin. So I changed the home directory for 
spamassassin to /etc/spamassassin. That created a hidden directory 
.spamassassin under /etc/spamassassin and when running "sa-learn --dump magic" 
I got errors (because spamd is still writing to bayes files just one directory 
up.) Thus, I made symlinks to the bayes files under the .spamassassin pointing 
to the same files one dir up and everything seems to be working.

My question is: Is that the best way to do that. Did I miss something?

Thanks for all who have helped.

Brett

-----Original Message-----
From: Karsten Bräckelmann [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 01, 2008 3:59 PM
To: users@spamassassin.apache.org
Subject: Re: autolearn=yes but sa-learn dump magic shows no new spam

On Fri, 2008-08-01 at 15:28 -0600, Brett Millett wrote:
> Hi,
> 
> I've been googling quite a bit today to find the answer to what I'm
> seeing that is happening on my mail server. However, I just can't seem
> to find a definitive answer. When looking at my mail logs I see a number
> of autolearn=spam, however when I run "sa-learn --dump magic" nspam does
> not increment. If I run sa-learn manually, nspam increments. Is this
> normal or should each autolearn=spam indicate that nspam should
> increment by one.

The site-wide spamassassin user or the user spamassassin has been called
on behalf is not the user you are running sa-learn --dump magic as?

Just a guess. :)

  guenther


-- 
char *t="[EMAIL PROTECTED]";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}

Reply via email to