/  3
 
pop3filter can be downloaded from http://pop3filter.sourceforge.net/.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 returnit with X-DSPAM headers identifying the message as spam or innocent. Todo this, follow these steps:1. Compile and install pop3filter2. Compile and install DSPAM on the same machineYou may optionally wish to the spamSubject and spamAction=tag preferencesso that a tag will be prepended to the subject header of messagessuspected to be spam.3. Configure pop3filter to run as follows:pop3filter --fork [mail server IP] 110 110 "/usr/local/bin/dspam --user \\$POP3_USERNAME --stdout --deliver=innocent,spam "a full blown example would look like:pop3filter --fork 10.0.0.1 110 110 "/usr/local/bin/dspam --user \\$POP3_USERNAME --stdout --deliver=innocent,spam"The POP3_USERNAME variable will be automatically replaced with the usernameprovided by the client at connect time.ClamAV can be installed using YUM or from SourceClamAV installation using YUMyum install clamav# oryum update clamavClamAV manual installationgroupadd -g 2004 clamavuseradd -u 2004 -g 2004 -d /var/empty -c "ClamAV Server" -s /sbin/nologin -Gclamav clamavDownloading, compiling and starting Clamavcd /tmpwget http://internap.dl.sourceforge.net/sourceforge/clamav/clamav-0.88.tar.gz./configuremakemake installcp /tmp/clamav-0.88/contrib/init/RedHat/clamd /etc/rc.d/init.d/chkconfig --add clamdchkconfig --level 3 clamd on/etc/rc.d/init.d/clamd startvi /usr/local/etc/clamd.confMake sure the following entries are uncommented and presentTCPSocket 3310
 
TCPAddr 127.0.0.1User clamavScanMailgroupadd -g 2002 dspamcd /var/work/sourcewget http://www.nuclearelephant.com/projects/dspam/sources/dspam-3.6.4.tar.gzcd ../compiletar -zxf ../source/dspam-3.4.2.tar.gzcd 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-gnuchmod 755 ../configure/dspam../configure/dspammake && make installmkdir -p /usr/local/share/dspam/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 usingthe mysql backend#This script will require you to manually add usersmysql dspam < virtual_user_aliases.sql# If you want users to be created automatically ,use this script# mysql dspam < virtual_users.sqlcp purge-4.1.sql /usr/local/share/dspam/(To keep your database nice and clean you will want to run this command nightly)# crontab -e0 0 * * * /usr/local/bin/mysql -udspam -pDSPAMSQLPASS dspam </usr/local/share/dspam/purge-4.1.sqlDspam Trainingtouch /usr/local/var/dspam/groupvi /usr/local/var/dspam/groupglobal_group:classification:*globalusercd /tmpwget http://dspam.sourceforge.net/sources/extras/dspam_sa_trainer.tar.gzDownload the public corpus from http://spamassassin.apache.org/publiccorpus/.

Share & Embed

More from this user

Add a Comment

Characters: ...