Results 1 to 10 of 10

Thread: Spam training question

  1. #1
    Join Date
    May 2008
    Location
    Park City, KS
    Posts
    342
    Rep Power
    7

    Question Spam training question

    I was wondering, for whatever process goes through the spam email account each night, how many emails does it use each night for training?

    For example, my spam training account gets a pretty fair number of mails put into it daily by users. But if I look in the account right now, it's still got some mails in it dated Dec. 1st and 2nd. There are currently about 300 messages in the spam training inbox. Half from today, maybe 75 from the 1st, and 75 from the 2nd.

    Shouldn't it empty each night?

  2. #2
    Join Date
    Nov 2007
    Location
    Santa Barbara, CA.
    Posts
    109
    Rep Power
    8

    Default

    hmm in your cos is this value: zimbraMailSpamLifetime


    Code:
    zmprov gc default zimbraMailSpamLifetime
    perhaps this is what you're looking for?

  3. #3
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by Jbrabander View Post
    Shouldn't it empty each night?
    No, it will retain messages for the 'Lifetime period' specified in the COS/Advanved page in the Admin UI or modified by the attribute Jesster has posted above.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  4. #4
    Join Date
    May 2008
    Location
    Park City, KS
    Posts
    342
    Rep Power
    7

    Default

    Hmmm, something's wrong then. If I'm looking at the right setting, the spam retention is set at 30 days, but when I look in the spam account inbox, it only has messages back to Dec. 1.

    Under Email Retention Policy:

    e-mail message lifetime = 0 days
    trashed message lifetime = 30 days
    spam message lifetime = 30 days

  5. #5
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by Jbrabander View Post
    Hmmm, something's wrong then. If I'm looking at the right setting, the spam retention is set at 30 days, but when I look in the spam account inbox, it only has messages back to Dec. 1.
    OK, what do you mean by the 'spam account'? Do you mean the Junk folder that each user has or the real ham/spam accounts on the system?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    Join Date
    May 2008
    Location
    Park City, KS
    Posts
    342
    Rep Power
    7

    Default

    The ham/spam accounts on the system.

  7. #7
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    They should be cleared out by the cron job that runs overnight for training, they are not affected by the lifetime attribute. You can check if your accounts are set correctly with the following:

    Code:
    zmprov gacf | grep SpamAccount"]zmprov gacf | grep SpamAccount
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
    Join Date
    May 2008
    Location
    Park City, KS
    Posts
    342
    Rep Power
    7

    Default

    IsNotSpam is set to the ham account, IsSpam is set to the spam account.

  9. #9
    Join Date
    Jan 2007
    Location
    Minnesota
    Posts
    719
    Rep Power
    9

    Default

    There's a zmtrainsa.log (or thereabouts) that, if I recall correctly, records the number of messages learned.

    As you've seen, the nightly purge job doesn't empty the spam inbox, just messages more than N days old. Feeding them to zmtrainsa again doesn't do any harm because the bayes database itself records message-ids previously seen.

    IMO it would not be a bad idea to run zmtrainsa more frequently, without the --sync argument if you're concerned about load.

  10. #10
    Join Date
    Jul 2008
    Posts
    78
    Rep Power
    7

    Default

    Since I was hot on the trail of the aforementioned log, is it /opt/zimbra/log/spamtrain.log ?

    I have a semi-related question. If I'm training by cmd say,
    /opt/zimbra/bin/zmtrainsa spam.3tgic3pi5@company.com spam inbox
    is that supposed to update the spamtrain.log log or is that the cron's output?

    thanks

Similar Threads

  1. spam - ham training
    By Viking0 in forum Administrators
    Replies: 6
    Last Post: 12-02-2008, 01:07 PM
  2. Trying to understand Zimbra's anti-spam system
    By TaskMaster in forum Users
    Replies: 11
    Last Post: 01-25-2008, 09:59 AM
  3. Spam Training Question
    By SpEnTBoY in forum Administrators
    Replies: 1
    Last Post: 04-23-2007, 11:50 AM
  4. How to check if spam training is working?
    By tbovingdon in forum Administrators
    Replies: 1
    Last Post: 03-13-2007, 06:57 AM
  5. Training spam and ham
    By Justin in forum Developers
    Replies: 2
    Last Post: 10-31-2006, 03:39 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
  •