| 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.
|  | 
12-03-2008, 02:08 PM
| | | 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? | 
12-03-2008, 08:24 PM
| | Trained Alumni | |
Posts: 108
| | hmm in your cos is this value: zimbraMailSpamLifetime Code: zmprov gc default zimbraMailSpamLifetime perhaps this is what you're looking for? | 
12-03-2008, 11:40 PM
| | Zimbra Consultant & Moderator | |
Posts: 20,312
| | Quote:
Originally Posted by Jbrabander 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
| 
12-04-2008, 07:11 AM
| | | 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 | 
12-04-2008, 08:02 AM
| | Zimbra Consultant & Moderator | |
Posts: 20,312
| | Quote:
Originally Posted by Jbrabander 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
| 
12-04-2008, 08:03 AM
| | | The ham/spam accounts on the system. | 
12-04-2008, 08:11 AM
| | Zimbra Consultant & Moderator | |
Posts: 20,312
| | 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
| 
12-04-2008, 12:14 PM
| | | IsNotSpam is set to the ham account, IsSpam is set to the spam account. | 
12-04-2008, 07:39 PM
| | Outstanding Member | |
Posts: 708
| | 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. | 
12-05-2008, 12:46 PM
| | | 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, is that supposed to update the spamtrain.log log or is that the cron's output?
thanks | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |