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
  #11 (permalink)  
Old 11-30-2005, 07:11 AM
Special Member
 
Posts: 108
Default

Thankyou for that quick reply!

It was my understanding that Zimbra installs it's own mysql server and there shouldn't be any other mysql servers installed.

This is output from whereis mysql

$ whereis mysql
mysql: /usr/bin/mysql /usr/lib/mysql /usr/share/mysql /opt/zimbra/bin/mysql.server /opt/zimbra/bin/mysql /usr/share/man/man1/mysql.1.gz

thanks,
Ian
Reply With Quote
  #12 (permalink)  
Old 11-30-2005, 07:58 AM
Zimbra Employee
 
Posts: 2,103
Default mysql

You'll find mysql headers and libs in /opt/zimbra/mysql, if you've got zcs installed.
Reply With Quote
  #13 (permalink)  
Old 11-30-2005, 08:54 AM
Special Member
 
Posts: 108
Default

Thanks MarcMac

the configure command finds the folders now, but I still get

configure: error: Required version of libmysqlclient not found
Reply With Quote
  #14 (permalink)  
Old 12-02-2005, 12:06 AM
Senior Member
 
Posts: 51
Default Training DSPAM

Its pretty easy to train dspam with a the corpus files from spamassassin.
Download http://dspam.nuclearelephant.com/sou...trainer.tar.gz

Edit publiccorpus.pl as follows on line 50:
Code:
$cmd = "/opt/dspam/bin/dspam --user $user --class=$class --source=corpus --mode=teft --feature=chained,noise --stdout < $corpus
Goto http://spamassassin.apache.org/publiccorpus/ and download all the spam and ham files except 20030228_easy_ham_2.tar.bz2 to keep the number of ham and spam files even. Extract these files in the same directory as publiccorpus.pl.

Run: perl publiccorpus.pl zimbra
After it finishes, it will take a good half an hour depending on your cpu power as you're entering thousands of emails into its database,

Run: dspam_clean -p0 zimbra
It will clean up any uneeded or neutral entries in dspam's database. This will also take a good deal of time.

-Ben

Last edited by unilogic; 01-21-2006 at 03:34 AM..
Reply With Quote
  #15 (permalink)  
Old 12-03-2005, 04:50 PM
Senior Member
 
Posts: 51
Default Training DSPAM Cont.

I've also modified zmtrainsa to train dspam. It grabs email in the same fashion as it does for SA training except it sends the messages to dspam for training. Add to /opt/zimbra/bin/zmtrainsa as follows:

Code:
if [ $MODE == "spam" ]; then
        DMODE="spam"
elif [ $MODE == "ham" ]; then
        DMODE="innocent"
fi
Code:
echo "Training DSPAM"

/usr/bin/fetchmail -n -a -u $USER $FOLDER -m "/opt/dspam/bin/dspam --user zimbra --class=${DMODE} --source=corpus --mode=teft --feature=chained,noise --stdout" ${SERVER}

echo "You should run: dspam_clean -p0 zimbra to clean up useless dspam entries"
Make sure this follows the added code
Code:
rm -f ${zimbra_home}/.fetchmailrc
It should work, It'll train SA and DSPAM. Let me know if anyone has problems.

-Ben

Last edited by unilogic; 12-03-2005 at 10:34 PM..
Reply With Quote
  #16 (permalink)  
Old 12-03-2005, 06:14 PM
Zimbra Employee
 
Posts: 2,103
Default speed increase

Might be faster to use on fetchmail command to dump to a temp file, then send that file through both SA and DSPAM - cuts down on the network traffic.
Reply With Quote
  #17 (permalink)  
Old 12-27-2005, 11:01 PM
Member
 
Posts: 14
Default RE: Configuring and using DSPAM

Ok, I followed the instructions and everything seems to have gone well. At first I was getting errors when running dspam_stats but I seem to have gotten that resolved. My question now is how can I verify that dspam is running and functioning correctly?

Thanks

Last edited by vcolombo; 12-27-2005 at 11:38 PM..
Reply With Quote
  #18 (permalink)  
Old 12-28-2005, 12:56 AM
Zimbra Consultant & Moderator
 
Posts: 19,633
Default

Have a look in the Zimbra logs and see if DSPAM is recognised when you start Zimbra, you should also have a look at the 'original' email and see if DSPAM has put any headers in there. You'll also have some logs in the DSPAM directory, have a look at them and see if they show anything.

You'll also get some stats if you run dspam_stats -H as root.
__________________
Regards


Bill

Last edited by phoenix; 12-28-2005 at 01:01 AM..
Reply With Quote
  #19 (permalink)  
Old 12-28-2005, 07:57 AM
Member
 
Posts: 14
Default

Ok, so after doing a cat /opt/zimbra/log/* | grep dspam I don't see any results, although running dspam_stats -H does yield the following:

zimbra:
TS True Positives: 0
TI True Negatives: 0
IM False Positives: 0
SM False Negatives: 0
SC Spam Corpusfed: 2398
IC Innocent Corpusfed: 5551
TL Training Left: 0
SR Spam Catch Rate: 100.00%
IR Innocent Catch Rate: 100.00%
OR Overall Rate/Accuracy: 100.00%

So at this point I'm assuming it's working.

Has anyone managed to get the dspam web interface installed on their Zimbra server? It would be nice to have access to the graphs and all.

Thanks again for the great tutorial and feedback. I'm truly impressed by both the Zimbra product and the Zimbra community.

-Vince
Reply With Quote
  #20 (permalink)  
Old 12-28-2005, 08:43 AM
Zimbra Employee
 
Posts: 2,103
Default logfile

You probably want /var/log/zimbra.log, not /opt/zimbra/log/*
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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.