Results 1 to 4 of 4

Thread: Bayes DB Status

  1. #1
    Join Date
    Oct 2008
    Posts
    16
    Rep Power
    7

    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.

  2. #2
    Join Date
    Nov 2009
    Posts
    16
    Rep Power
    6

    Default

    Bump.

    Valid question.

    How do you find out if you have a good ham/spam database built up yet?

  3. #3
    Join Date
    May 2009
    Location
    Bremen, Germany
    Posts
    122
    Rep Power
    6

    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

  4. #4
    Join Date
    Feb 2009
    Posts
    22
    Rep Power
    6

    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 07:46 AM.

Similar Threads

  1. [SOLVED] mysql.server not running
    By king0770 in forum Administrators
    Replies: 23
    Last Post: 07-25-2009, 04:07 PM
  2. Error after installation
    By robsontuxlinux in forum Installation
    Replies: 13
    Last Post: 09-11-2008, 10:48 PM
  3. zmmailboxdctl is stopped frequently..
    By tamilnandhu in forum Installation
    Replies: 13
    Last Post: 04-12-2008, 09:59 AM
  4. mysql.server is not running
    By Oswald-Kolle in forum Installation
    Replies: 27
    Last Post: 05-01-2007, 09:28 AM
  5. Trouble sending mail from Outlook
    By czaveri in forum Users
    Replies: 15
    Last Post: 07-24-2006, 12:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •