From: linuxmalaysia <linuxmalay...@gmail.com>
Date: Fri, 11 Jan 2008 08:31:48 -0800 (PST)
Local: Sat, Jan 12 2008 12:31 am
Subject: Bayesian SpamAssassin MySQL SPEC RPM
Bayesian SpamAssassin MySQL SPEC RPM
Internet links :
http://songketmail.wiki.sourceforge.net/bayesian-mysql
This documentation need to refer to files residing in BayesianMySql at
SPEC RPM can be found here
Source to be used with SPEC RPM
Building RPM
Simple steps
(1) Copy the tar.bz2 file to /usr/src/redhat/SOURCE
You need to install development packages and rpmbuild to build RPM.
This installation is using CentOS 5 as the main Linux Operating
(1) Install Packages needed as per CentOS 5.
spamassassin, mysql, mysql-server, perl-DBI, perl-DBD-MySQL, perl-Net-
or by yum
yum install spamassassin mysql mysql-server perl-DBI perl-DBD-MySQL
(2) Start the Mysql Server and create database name bayesianmysql
mysqladmin create bayesianmysql
Assign the user
GRANT ALL ON bayesianmysql.* to bayesianmysql@localhost identified by
Change the password yourpassword1234 to your own.
(3) Create the tables needed by the database.
http://wiki.apache.org/spamassassin/BetterDocumentation/SqlReadme
or load the SQL file used by Bayesianmysql SPEC RPM
http://code.google.com/p/songketmail/wiki/BayesianMySqlSkeletonTables
mysql -p -u bayesianmysql bayesianmysql < nameofsqlfile.sql
(4) Copy 2 spamassassin cf files to /etc/mail/spamassassin
Get the file name bayesian-mysql.cf
http://songketmail.wiki.sourceforge.net/bayesian-mysql.cf
and file name bayesian-mysql-mysql.cf
http://code.google.com/p/songketmail/wiki/BayesianMysqlSpamassassinCf
(5) You need at least to trained spamassassin one ham and spam email
Spamassassin Public Corpus can be used if you don't have any examples.
http://spamassassin.apache.org/publiccorpus/
The command :-
http://spamassassin.apache.org/full/3.1.x/dist/doc/sa-learn.html
sa-learn --ham hamemail.txt
(6) Finishing the setup
Sync the dataset
sa-learn --sync --force-expire
Update the rules
sa-updates
Run the LINT test
spamassassin --lint -D
Watch the debug output from spamd and look for the following debug
debug: bayes: Database connection established
Forum and discussion
http://sourceforge.net/forum/?group_id=213253
Blog
http://songketmail.harisfazillah.info/
Harisfazillah Jamel for SongketMail
http://songketmail.wiki.sourceforge.net/bayesian-mysql-guide
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||