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 10-28-2009, 03:59 PM
imx imx is offline
Special Member
 
Posts: 131
Default salearn and Bayes issue

Running 6.0.2, seems to be in a different place for me:

zimbra@mambo:~$ ls -lah /opt/zimbra/amavisd/.spamassassin/init/bayes_toks
-r--r--r-- 1 zimbra zimbra 332K Oct 20 22:25 /opt/zimbra/amavisd/.spamassassin/init/bayes_toks

i.e in the 'init' dir, so when i run sa-learn it cant find it... if i symlink it it seems to run ok....

Bug?
Reply With Quote
  #2 (permalink)  
Old 10-29-2009, 02:51 AM
Moderator
 
Posts: 7,911
Default

Why are you running sa-learn and not /opt/zimbra/bin/zmtrainsa
__________________
Reply With Quote
  #3 (permalink)  
Old 10-29-2009, 03:44 AM
imx imx is offline
Special Member
 
Posts: 131
Default

I cant train SA using zmtrainsa though can i, when using spam archives? ie just dumps of spam mail?

Thanks,
Reply With Quote
  #4 (permalink)  
Old 10-29-2009, 03:54 AM
Moderator
 
Posts: 7,911
Default

Code:
su - zimbra
/opt/zimbra/libexec/sa-learn -p /opt/zimbra/conf/salocal.cf --dbpath /opt/zimbra/data/amavisd/.spamassassin -L --no-sync --siteconfigpath /opt/zimbra/conf/spamassassin --spam
__________________
Reply With Quote
  #5 (permalink)  
Old 10-29-2009, 04:01 AM
imx imx is offline
Special Member
 
Posts: 131
Default

Yes, this is what i was running...however i was getting the error about the file not existing...until i symlinked it!
Reply With Quote
  #6 (permalink)  
Old 10-29-2009, 04:09 AM
Moderator
 
Posts: 7,911
Default

Works fine without symlinking
Code:
su - zimbra
echo "TEST" | /opt/zimbra/libexec/sa-learn -p /opt/zimbra/conf/salocal.cf --dbpath /opt/zimbra/data/amavisd/.spamassassin -L --no-sync --siteconfigpath /opt/zimbra/conf/spamassassin --ham   
Learned tokens from 0 message(s) (1 message(s) examined)
__________________
Reply With Quote
  #7 (permalink)  
Old 10-29-2009, 04:12 AM
imx imx is offline
Special Member
 
Posts: 131
Default

Whilst i thank you for your reply, no one ever seems to listen on this forum - they're far more interested in proving it works for them, which helps no one....

I had an issue, with a 6.0.2 install, where when i ran the command it said it was looking for the file in:

/opt/zimbra/amavisd/.spamassassin/

But the file was in:

/opt/zimbra/amavisd/.spamassassin/init/

So.....the point of my update, is to see if other people have the same problem, and if so how they may go about fixing it. Not for you to tell me im stupid, and that yours works...

Thanks,

Ed
Reply With Quote
  #8 (permalink)  
Old 10-29-2009, 04:19 AM
Moderator
 
Posts: 7,911
Default

Ugh Have not implied you are stupid at all. My installation is a vanilla 6.0.2 and have not had to symlink anything. My directory structure also appears to be the same
Code:
[zimbra@office .spamassassin]$ ls -la
total 28
drwxr-x--- 2 zimbra zimbra  4096 Sep 12 23:20 .
drwxr-xr-x 7 zimbra zimbra  4096 Sep 12 20:43 ..
-rw------- 1 zimbra zimbra 12288 Sep 12 23:00 bayes_seen
-rw------- 1 zimbra zimbra 12288 Sep 12 23:20 bayes_toks
apart from I have no init file. Please unlink and run what I have posted. When done please post the error message.
__________________
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.