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 Display Modes
  #1 (permalink)  
Old 10-26-2009, 08:40 AM
Member
 
Posts: 10
Default DSPAM Training Times Out

Hi,

We recently enabled DSPAM in Zimbra, but just noticed, that when running a manual zmtrainsa, the SpamAssassin trains just fine, but then we get this -
....
20091026013342 Finished spamassassin spam training for user@domain.com using folder junk
20091026013342 Starting dspam spam training for user@domain.com using folder junk

And it just hangs at this point for as long as we let it.
No confirmation or anything else is printed, and there does not seem to be anything in the logs regarding this.


Any suggestions/ideas?

Thank you.
Reply With Quote
  #2 (permalink)  
Old 10-26-2009, 09:30 AM
Zimbra Consultant & Moderator
 
Posts: 11,517
Default

Quote:
Originally Posted by shnook View Post
Hi,

We recently enabled DSPAM in Zimbra, but just noticed, that when running a manual zmtrainsa, the SpamAssassin trains just fine, but then we get this -
....
20091026013342 Finished spamassassin spam training for user@domain.com using folder junk
20091026013342 Starting dspam spam training for user@domain.com using folder junk

And it just hangs at this point for as long as we let it.
No confirmation or anything else is printed, and there does not seem to be anything in the logs regarding this.
Why are you actually doing this on the Junk folder? I notice in another thread that you've made changes to the config files for amavis & DSPAM, you shouldn't need to do that for 6.0.2 as the training works OK as it's set-up.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 10-26-2009, 10:03 AM
Member
 
Posts: 10
Default

Thanks for the quick reply.

The reason I am running it was because I imported a large mailbox that was filled with spam, I wanted to actually see how it trains (if it is working.).

Regarding the configs, in the thread there was a discussion regarding an error 'no such feature: chained'. I was having that problem, and the way I took care of it was by changing the configs.
(looking in the dspam.conf, i saw a reference to chain, not chained, so I figured that has to be changed in the amavis.conf. And in the zmtrainsa script, it had a line --feature=chained, whereas in the amavis script it said --tokenizer=chained, so I figured zmtrainsa should be changed as well.)

As it was, even before the error, our whole AS/AV broke after upgrade so no mails were going in or out, so I guess it's safe to say that in this particular case, something wasn't working in 6.0.2.


My main worry here, is that if zmtrainsa is running on a cron job and not ending, I will end up with a whole bunch of stuck processes that could affect the machine.


Thanks again.
Reply With Quote
  #4 (permalink)  
Old 10-26-2009, 10:55 AM
Zimbra Consultant & Moderator
 
Posts: 11,517
Default

Well, I've installed a clean Zimbra 6.x and upgraded a 5.x that's been installed since Zimbra was released and not had any problem with the DSPAM scripts so I don't understand why yours needed tweaking.

The only thing that should be done (AFAIK) is to set the ownership on the dspam-3.x folders to zimbra:zimbra or run the zmfixperms script. Anyway, you can test zmtrainsa by just running it from the command line as the zimbra user and it should run and terminate normally and you can also check the log file to see whether the cron job ran and ended.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 10-26-2009, 05:35 PM
Member
 
Posts: 10
Default

I switched permission to zimbra ownership, and zmfixperms switches it right back...
Apparently my upgrade did not go as smoothly as yours.

I just went and disabled Dspam.

Thanks for all your help.
Reply With Quote
  #6 (permalink)  
Old 10-28-2009, 03:09 PM
imx imx is offline
Active Member
 
Posts: 42
Default

I second the possible bug with it hanging when running against a specific mail user/folder.

Restart amavisd after hacking the config file, zimbra seems to set it right back?! I.e changing to chain, rather than chained.

Phoenix, can you confirm you can run against a specific user/folder?
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0