Bayes DB Status

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
reason2008
Posts: 23
Joined: Fri Sep 12, 2014 11:51 pm

Bayes DB Status

Postby reason2008 » Tue Jun 02, 2009 7:06 am

Hello,
I'm running ZCS 5.0.10. What is the command to check the status of my bayes database? I'd like to know how many ham/spam it contains.
Thanks.


Waffles
Posts: 16
Joined: Sat Sep 13, 2014 12:51 am

Bayes DB Status

Postby Waffles » Tue Nov 24, 2009 8:27 am

Bump.
Valid question.
How do you find out if you have a good ham/spam database built up yet?
jummo
Advanced member
Advanced member
Posts: 120
Joined: Sat Sep 13, 2014 12:26 am

Bayes DB Status

Postby jummo » Wed Nov 25, 2009 3:02 am

In ZCS 6.0.2 I use the following:



su - zimbra

/opt/zimbra/libexec/sa-learn --dbpath /opt/zimbra/data/amavisd/.spamassassin --dump magic

Get informations from zimbra user crontab:

# Spam Bayes auto-expiry

#

20 23 * * * /opt/zimbra/libexec/sa-learn -p /opt/zimbra/conf/salocal.cf --dbpath /opt/zimbra/data/amavisd/.spamassassin --siteconfigpath /opt/zimbra/conf/spamassassin --force-expire --sync > /dev/null 2>&1
creagel
Posts: 22
Joined: Sat Sep 13, 2014 12:07 am

Bayes DB Status

Postby creagel » Mon Aug 23, 2010 7:47 am

[quote user="jummo"]In ZCS 6.0.2 I use the following:



su - zimbra

/opt/zimbra/libexec/sa-learn --dbpath /opt/zimbra/data/amavisd/.spamassassin --dump magic

I'am running ZCS 6.0.5 NE, but if I run this command, i'am getting this:


zimbra@zm1:~$ /opt/zimbra/libexec/sa-learn --dbpath /opt/zimbra/data/amavisd/.spamassassin --dump magic

0.000 0 3 0 non-token data: bayes db version

0.000 0 235347 0 non-token data: nspam

0.000 0 646392 0 non-token data: nham

0.000 0 143553 0 non-token data: ntokens

0.000 0 1281866670 0 non-token data: oldest atime

0.000 0 1282566301 0 non-token data: newest atime

0.000 0 1282565659 0 non-token data: last journal sync atime

0.000 0 1282555223 0 non-token data: last expiry atime

0.000 0 172800 0 non-token data: last expire atime delta

0.000 0 64848 0 non-token data: last expire reduction count


It's normal, that bayes db version is so low (server has uptime 324 days)? I have too many spam in mailboxes, so I have suspicion, that bayes autolearn is not working (sorting mail to SPAM and HAM accounts is working good) :(
Learning script (/opt/zimbra/bin/zmtrainsa) was running manually many times.

Return to “Administrators”

Who is online

Users browsing this forum: Google [Bot] and 3 guests