From LedHed's Wiki
Jump to: navigation, search
Line 1: Line 1:
 
To view the compile options on an existing installation of dspam use this command:
 
To view the compile options on an existing installation of dspam use this command:
 
+
dspam --version
 
+
dspam --version
+
 
+
 
+
----
+
  
  
  
 
== Compile Options ==
 
== Compile Options ==
''Note: these are the compile options I typically use.''
+
''Note: these are the compile options I typically use. There are many more options to suit other needs''
''There are many more options to suit other needs''
+
<br>
  
--sysconfdir=/etc/dspam \<br>
+
--sysconfdir=/etc/dspam \<br>
--enable-daemon \<br>
+
--enable-daemon \<br>
--enable-clamav \<br>
+
--enable-clamav \<br>
--with-storage-driver=mysql_drv \<br>
+
--with-storage-driver=mysql_drv \<br>
--with-mysql-libraries=/usr/lib/mysql \<br>
+
--with-mysql-libraries=/usr/lib/mysql \<br>
--with-mysql-includes=/usr/include/mysql \<br>
+
--with-mysql-includes=/usr/include/mysql \<br>
--enable-virtual-users \<br>
+
--enable-virtual-users \<br>
--enable-preferences-extension \<br>
+
--enable-preferences-extension \<br>
--enable-domain-scale \<br>
+
--enable-domain-scale \<br>
--enable-debug \<br>
+
--enable-debug \<br>
--with-logdir=/var/log/dspam<br>
+
--with-logdir=/var/log/dspam<br>
  
  
  
 
== Down and Dirty Install ==
 
== Down and Dirty Install ==
<br>
 
 
<nowiki>wget http://dspam.nuclearelephant.com/sources/dspam-3.X.X.tar.gz</nowiki><br>
 
<nowiki>wget http://dspam.nuclearelephant.com/sources/dspam-3.X.X.tar.gz</nowiki><br>
 
  tar -xvzf dspam-3.X.X.tar.gz
 
  tar -xvzf dspam-3.X.X.tar.gz
Line 55: Line 49:
  
 
File permissions can drive you nutz when installing dspam. Here are a few tips.
 
File permissions can drive you nutz when installing dspam. Here are a few tips.
 
+
<br>
 
1. Create a 'dspam' user and 'dspam' group<br>
 
1. Create a 'dspam' user and 'dspam' group<br>
 
2. change ownership of all dspam files to be owned by dspam.dspam
 
2. change ownership of all dspam files to be owned by dspam.dspam

Revision as of 09:23, 6 October 2007

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


Down and Dirty 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


Then set File Permissions and edit /etc/dspam.conf as needed


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