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 12-03-2008, 02:08 PM
Elite Member
 
Posts: 337
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?
Reply With Quote
  #2 (permalink)  
Old 12-03-2008, 08:24 PM
Trained Alumni
 
Posts: 108
Default

hmm in your cos is this value: zimbraMailSpamLifetime


Code:
zmprov gc default zimbraMailSpamLifetime
perhaps this is what you're looking for?
Reply With Quote
  #3 (permalink)  
Old 12-03-2008, 11:40 PM
Zimbra Consultant & Moderator
 
Posts: 20,312
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
Reply With Quote
  #4 (permalink)  
Old 12-04-2008, 07:11 AM
Elite Member
 
Posts: 337
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
Reply With Quote
  #5 (permalink)  
Old 12-04-2008, 08:02 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
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
Reply With Quote
  #6 (permalink)  
Old 12-04-2008, 08:03 AM
Elite Member
 
Posts: 337
Default

The ham/spam accounts on the system.
Reply With Quote
  #7 (permalink)  
Old 12-04-2008, 08:11 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
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
Reply With Quote
  #8 (permalink)  
Old 12-04-2008, 12:14 PM
Elite Member
 
Posts: 337
Default

IsNotSpam is set to the ham account, IsSpam is set to the spam account.
Reply With Quote
  #9 (permalink)  
Old 12-04-2008, 07:39 PM
Outstanding Member
 
Posts: 708
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.
Reply With Quote
  #10 (permalink)  
Old 12-05-2008, 12:46 PM
Loyal Member
 
Posts: 76
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,
Quote:
/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
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.