Dspam Pop3 Proxy Clamav
Dspam Pop3 Proxy Clamav
Dspam Pop3 Proxy Clamav
The easiest way to set up pop3filter is to have it call DSPAM using the
--stdout command, at which point DSPAM will check the message and return
it with X-DSPAM headers identifying the message as spam or innocent. To
do this, follow these steps:
vi /usr/local/etc/clamd.conf
cd /var/work/source
wget http://www.nuclearelephant.com/projects/dspam/sources/dspam-3.6.4.tar.gz
cd ../compile
tar -zxf ../source/dspam-3.4.2.tar.gz
cd dspam-3.4.2/
vi ../configure/dspam
#!/bin/sh
./configure \
--with-storage-driver=mysql_drv \
--with-mysql-includes=/usr/include/mysql \
--with-mysql-libraries=/usr/lib/mysql \
--enable-preferences-extension \
--enable-virtual-users \
--enable-debug --enable-clamav --build=i686-pc-linux-gnu
cd /var/work/compile/dspam-3.4.2/src/tools.mysql_drv/
mysql -e "create database dspam"
mysql -e "grant all on dspam.* to dspam@localhost identified by 'yourpassword'"
mysql dspam < mysql_objects-4.1.sql
#You can use any of the following lines based on whether u want dspam to add non-
exixtant users automaically in to the system or whether you would add users using
the mysql backend
#This script will require you to manually add users
mysql dspam < virtual_user_aliases.sql
(To keep your database nice and clean you will want to run this command nightly)
# crontab -e
0 0 * * * /usr/local/bin/mysql -udspam -pDSPAMSQLPASS dspam <
/usr/local/share/dspam/purge-4.1.sql
Dspam Training
touch /usr/local/var/dspam/group
vi /usr/local/var/dspam/group
global_group:classification:*globaluser
cd /tmp
wget http://dspam.sourceforge.net/sources/extras/dspam_sa_trainer.tar.gz
Download the public corpus from http://spamassassin.apache.org/publiccorpus/.
It is recommended you grab all of the 20030228 archives except for
easy_ham_2 (to help balance the corpus) and the 2002 spam archive.
Extract and untar each archive in /tmp/spam directory.
vi /var/www/antispam.stpimumbai.net/cgi-bin/configure.pl
Modify as follows
$CONFIG{'HISTORY_SIZE'} = 10000;
$CONFIG{'HISTORY_PER_PAGE'} = 10000;