SquidGuard is a URL redirector used to use blacklists with the proxysoftware Squid. There are two big advantages to squidguard: it is fast and it is free.
Revision of DSPAM from Fri, 10/21/2011 - 10:20
Revisions allow you to track differences between multiple versions of your content, and revert back to older versions.
Prerequisites
- MySQL
- Apache webserver, compiled with:
./configure \
--enable-so \
--enable-ssl \
--enable-rewrite \
--enable-suexec \
--with-suexec-docroot=/var/websitesBefore you compile, edit
support/suexec.h
and change the AP_HTTPD_USER from the default "www" to the "nobody" that our Apache install instructions use:#define AP_HTTPD_USER "nobody"
#define AP_UID_MIN 99
#define AP_GID_MIN 99
Installation
cd /extra/src
wget http://cdnetworks-us-2.dl.sourceforge.net/project/dspam/dspam/dspam-3.10.1/dspam-3.10.1.tar.gz
tar zxf dspam-3.10.1.tar.gz
cd dspam-3.10.1
Configure it:
export LD_LIBRARY_PATH=/usr/local/mysql/lib/mysql:${LD_LIBRARY_PATH}
./configure \
--with-storage-driver=mysql_drv \
--with-mysql-libraries=/usr/local/mysql/lib/mysql \
--with-mysql-includes=/usr/local/mysql/include/mysql \
--enable-preferences-extension \
--enable-virtual-users \
--enable-daemon \
--enable-debug \
--enable-verbose-debug \
--with-dspam-home=/var/dspam \
--with-dspam-home-owner=simscan \
--with-dspam-home-group=simscan \
--with-dspam-owner=simscan \
--with-dspam-group=simscan \
--enable-domain-scale \
--without-delivery-agent
Build and install the binaries:
make && make install
Set up MySQL database and tables:
cd src/tools.mysql_drv
/usr/local/mysql/bin/mysqladmin -u root -p create dspamdb
cat mysql_objects-speed.sql | /usr/local/mysql/bin/mysql -u root -p dspamdb
cat virtual_users.sql | /usr/local/mysql/bin/mysql -u root -p dspamdb
Log into MySQL and assign a password for simscan to us the dspam database:
/usr/local/mysql/bin/mysql -u root -p
grant all privileges on dspamdb.* to simscan@localhost identified by 'password';
flush privileges;
exit
Of course, change "password" to something meaningful.Be aware that the user simscan has ALL privileges (including the ability to delete the database) unless you do something otherwise.
Create the file that allows DSPAM to access the database:
cd /var/dspam
Create the following file called mysql.data
, again changing "password":
/tmp/mysql.sock
simscan
password
dspamdb
Create the trusted.users file:
cd /var/dspam
echo "simscan" >trusted.users
Change the permissions on the Dspam install so that the Simscan user can access it:
chown -R simscan:simscan /var/dspam
chown simscan:simscan /usr/local/etc/dspam.conf
chown simscan:simscan /usr/local/bin/dspam
No such feature 'chained'
The default configuration fo dspam gave a No such feature 'chained' error in the SMTP service logs. Edit /usr/local/etc/dspam.conf
and change the tokenizer from chain to word:
Tokenizer word
NOTES
None of that stuff worked the latest time I did this. Had to add Trust simscan
and Trust qmaild
to /usr/local/etc/dspam.conf
as well as putting the MySQL info in that conf file as well.
Additional References
http://hmonteiro.net/howtos:qmail:qmail_plus_dspam
http://hmonteiro.net/patches:dspam_external_lookup
http://www.wimble.info/articles/dspam-qmail-vpopmail.php
http://gentoo-wiki.com/Dspam_vpopmail
http://www.directadmin.com/forum/showthread.php?t=16015
http://wiki.lnxgeek.org/doku.php/howtos:mailserver#dspam_training_mode
http://www.easyweb.co.uk/Members/martin/blog/Blog_Post.2004-08-11.8452654600
http://mail.michscimfd.com/dspam/
http://switch.richard5.net/isp-in-a-box-v2/setting-up-dspam/training-dspam-with-scripts/
- Log in to post comments