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 09-28-2006, 05:49 PM
Active Member
 
Posts: 28
Default zmtrainsa broken after upgrade to v 4.0

When training SA:

Learned from 0 message(s) (1 message(s) examined).
ERROR: the Bayes learn function returned an error, please re-run with -D for more information
fetchmail: MDA returned nonzero status 79
not flushed
reading message dean@macworkshops.com@zimbra.macworkshops.com:6 of 1221 (1486 header octets) . (957 body octets) .config: could not find site rules directory
bayes: cannot open bayes databases /opt/zimbra/amavisd/.spamassassin/bayes_* R/O: tie failed: Inappropriate file type or format
bayes: cannot open bayes databases /opt/zimbra/amavisd/.spamassassin/bayes_* R/W: tie failed: Inappropriate file type or format


Any pointers for fixing this issue?

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 09-28-2006, 07:47 PM
Former Zimbran
 
Posts: 5,606
Default

Hi source,

zmtrainsa is run via cron job "45 23 * * * /opt/zimbra/bin/zmtrainsa --cleanup >> /opt/zimbra/log/spamtrain.log 2>&1".

To run it manually, use this syntax "/opt/zimbra/bin/zmtrainsa <server> <user> <pass> <spam|ham> [folder]"

Are you already running it in this manner?
Reply With Quote
  #3 (permalink)  
Old 09-28-2006, 08:36 PM
Active Member
 
Posts: 28
Default Yes, I'm running it manually....

Quote:
Originally Posted by wannabetenor
Hi source,

zmtrainsa is run via cron job "45 23 * * * /opt/zimbra/bin/zmtrainsa --cleanup >> /opt/zimbra/log/spamtrain.log 2>&1".

To run it manually, use this syntax "/opt/zimbra/bin/zmtrainsa <server> <user> <pass> <spam|ham> [folder]"

Are you already running it in this manner?
Yes, I'm running it manually and am getting the error. It started when I updated to v4.0. Everything else is just fine.
Reply With Quote
  #4 (permalink)  
Old 09-28-2006, 09:54 PM
Former Zimbran
 
Posts: 5,606
Default

version?
4.0
4.0.1
or
4.0.2
Reply With Quote
  #5 (permalink)  
Old 09-29-2006, 09:52 AM
Active Member
 
Posts: 28
Default Version is 4.0

Quote:
Originally Posted by wannabetenor
version?
4.0
4.0.1
or
4.0.2
Perhaps upgrading to 4.0.2 would help?
Reply With Quote
  #6 (permalink)  
Old 09-29-2006, 10:31 AM
Former Zimbran
 
Posts: 5,606
Default

Quote:
Originally Posted by sourcehound
Perhaps upgrading to 4.0.2 would help?
It might, but no promises.
Reply With Quote
  #7 (permalink)  
Old 09-29-2006, 03:06 PM
Active Member
 
Posts: 28
Default Some Progress

Quote:
Originally Posted by wannabetenor
It might, but no promises.
OK, I updated to 4.0.2 but the issue persisted. I did manage to fix this problem: "bayes: cannot open bayes databases /opt/zimbra/amavisd/.spamassassin/bayes_* R/O: tie failed: Inappropriate file type or format
bayes: cannot open bayes databases /opt/zimbra/amavisd/.spamassassin/bayes_* R/W: tie failed: Inappropriate file type or format"

By deleting the bayes_seen and bayes_toks databases. There were regenerated automatically the next time I ran zmtrainsa.

However, the .config: could not find site rules directory message persists. A little poking reveals the site rules directory lives at:

/opt/zimbra/conf/spamassassin

So, could someone please tell me which directory Amavisd is looking to to get the above path so I can create a link?
Reply With Quote
  #8 (permalink)  
Old 10-04-2006, 08:45 PM
Active Member
 
Posts: 28
Default No Takers?

Kick, kick, kick.

I'm more than a little disappointed here that no one is even attempting to answer this....

I really need some info or a hand...

Please?
Reply With Quote
  #9 (permalink)  
Old 10-05-2006, 07:44 AM
Zimbra Consultant & Moderator
 
Posts: 19,639
Default

Quote:
Originally Posted by sourcehound
Kick, kick, kick.
Yes, that's my attitude when people post that.

Quote:
Originally Posted by sourcehound
I'm more than a little disappointed here that no one is even attempting to answer this....
You may be disappointed but people get round to answering it when they can, this is free support for free software. Some of us have lives and jobs to tend to, don't be so impatient.

Quote:
Originally Posted by sourcehound
I really need some info or a hand...
What have you found on google about this problem? Have you looked in the amavisd.conf.in file?
__________________
Regards


Bill
Reply With Quote
  #10 (permalink)  
Old 10-05-2006, 09:37 AM
Active Member
 
Posts: 28
Default Kicking a topic is a common practice!

Quote:
Originally Posted by phoenix
Yes, that's my attitude when people post that.

You may be disappointed but people get round to answering it when they can, this is free support for free software. Some of us have lives and jobs to tend to, don't be so impatient.

What have you found on google about this problem? Have you looked in the amavisd.conf.in file?
Haven't you ever of "kicking" a dead topic on a forum so that someone will respond? I belong to many forums, and don't do it lightly. If you read my post you'll see that I have indeed done a lot of investigation of the problem and have only one small architectural question, which any Zimbra engineer or team member could answer:

OK, I updated to 4.0.2 but the issue persisted. I did manage to fix this problem: "bayes: cannot open bayes databases /opt/zimbra/amavisd/.spamassassin/bayes_* R/O: tie failed: Inappropriate file type or format
bayes: cannot open bayes databases /opt/zimbra/amavisd/.spamassassin/bayes_* R/W: tie failed: Inappropriate file type or format"

By deleting the bayes_seen and bayes_toks databases. There were regenerated automatically the next time I ran zmtrainsa.

However, the .config: could not find site rules directory message persists. A little poking reveals the site rules directory lives at:

/opt/zimbra/conf/spamassassin

So, could someone please tell me which directory Amavisd is looking to to get the above path so I can create a link?

And why would you work under he assumption that I'm using the open source edition? Maybe I'm using the network edition?
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.