From LedHed's Wiki
Revision as of 09:36, 6 October 2007 by Ledhed (Talk | contribs)

Jump to: navigation, search

To view the compile options on an existing installation of dspam use this command:

dspam --version


Compile Options

Note: these are the compile options I typically use. There are many more options to suit other needs

--sysconfdir=/etc/dspam \
--enable-daemon \
--enable-clamav \
--with-storage-driver=mysql_drv \
--with-mysql-libraries=/usr/lib/mysql \
--with-mysql-includes=/usr/include/mysql \
--enable-virtual-users \
--enable-preferences-extension \
--enable-domain-scale \
--enable-debug \
--with-logdir=/var/log/dspam


Download & Install

wget http://dspam.nuclearelephant.com/sources/dspam-3.X.X.tar.gz


tar -xvzf dspam-3.X.X.tar.gz
cd dspam-3.X.X


./configure \
--sysconfdir=/etc/dspam \
--enable-daemon \
--enable-clamav \
--with-storage-driver=mysql_drv \
--with-mysql-libraries=/usr/lib/mysql \
--with-mysql-includes=/usr/include/mysql \
--enable-virtual-users \
--enable-preferences-extension \
--enable-domain-scale \
--enable-debug \
--with-logdir=/var/log/dspam


make && make install



File Permissions

File permissions can drive you nutz when installing dspam. Here are a few tips.
1. Create a 'dspam' user and 'dspam' group
2. change ownership of all dspam files to be owned by dspam.dspam

chown dspam.dspam dspam_files

3. set the sticky bit (SUID) for the dspam executable (/usr/local/bin/dspam)

chmod 1540 /usr/local/bin/dspam

4. set the correct file permissions of all of the dspam files see: DSpam File Permissions


Configuration

All of DSpam's configuration takes place within dspam.conf (typically located in: /etc/dspam.conf or /etc/dspam/dspam.conf)

Read through dspam.conf, it contains explanations for each configuration option. If you are still unsure after reading dspam.conf, try reading the 'readme' (AKA documentation). If that doesn't help try Google and if that still doesn't shed any light on your problem join the the IRC channel #dspam at irc.freenode.net

More to Come!