Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-02-2009, 05:06 AM
Member
 
Posts: 12
Default Bayes DB Status

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.
Reply With Quote
  #2 (permalink)  
Old 11-24-2009, 06:27 AM
Intermediate Member
 
Posts: 16
Default

Bump.

Valid question.

How do you find out if you have a good ham/spam database built up yet?
Reply With Quote
  #3 (permalink)  
Old 11-25-2009, 01:02 AM
Special Member
 
Posts: 113
Default

In ZCS 6.0.2 I use the following:
Code:
su - zimbra
/opt/zimbra/libexec/sa-learn --dbpath /opt/zimbra/data/amavisd/.spamassassin --dump magic
Get informations from zimbra user crontab:
Code:
# 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
Reply With Quote
  #4 (permalink)  
Old 08-23-2010, 05:47 AM
Intermediate Member
 
Posts: 19
Default

[QUOTE=jummo;162512]In ZCS 6.0.2 I use the following:
Code:
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:

Code:
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.

Last edited by creagel; 08-23-2010 at 06:46 AM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.