Ok not getting much assistance here but I think I'm finally getting somewhere
This is my list of commands to install the initial DSPAM. The database, username and password is all dspam which makes the list slightly confusing but I'm playing on a test server and will change them later
cd /var/lib/
mkdir dspam
cd dspam
wget http://dspam.nuclearelephant.com/sources/dspam-3.8.0.tar.gz
tar -xzf dspam-3.8.0.tar.gz
cd dspam-3.8.0
yum install --enablerepo=base --enablerepo=updates --enablerepo=addons gcc
yum install --enablerepo=base --enablerepo=updates --enablerepo=addons autoconf
yum install --enablerepo=base --enablerepo=updates --enablerepo=addons automake
yum install --enablerepo=base --enablerepo=updates --enablerepo=addons mysql-devel
signal-event post-upgrade
signal-event reboot
cd /var/lib/dspam/dspam-3.8.0
./configure --sysconfdir=/etc --with-dspam-home=/var/lib/dspam --with-logdir=/var/log/dspam --with-storage-driver=mysql_drv --enable-daemon --enable-virtual-users --enable-preferences-extension --enable-long-usernames --with-dspam-owner=root --with-dspam-group=root --enable-clamav --with-mysql-includes=/usr/include/mysql --with-mysql-libraries=/usr/lib/mysql
make && make install
groupadd dspam
mysql -u root
CREATE database dspam;
GRANT ALL PRIVILEGES ON dspam.* TO dspam@'localhost' IDENTIFIED BY 'dspam';
quit
mysql -u dspam dspam -p < /var/lib/dspam/dspam-3.8.0/src/tools.mysql_drv/mysql_objects-space.sql
mysql -u dspam dspam -p < /var/lib/dspam/dspam-3.8.0/src/tools.mysql_drv/virtual_users.sql
cd ..
echo /var/lib/mysql/mysql.sock >> mysql.data
echo >> mysql.data
echo dspam >> mysql.data
echo dspam >> mysql.data
echo dspam >> mysql.data
The second bit gets the WebUI running (sort of)
You need to change the templates that create /etc/httpd/conf/httpd.conf
We need a line that says
RewriteRule ^/dspam(/.*|$) https://%{HTTP_HOST}/dspam$1 [L,R]
I stuck it under the rewrite rule for horde on line 500
We need a line that says
Alias /dspam /home/httpd/html/dspam
I stuck it under the alias for horde on line 558
The following section goes above the Horde specific configuration files
# DSPAM directory
<Directory /home/httpd/html/dspam>
AuthName "DSPAM"
AuthType Basic
AuthExternal pwauth
<Limit GET>
order deny,allow
require valid-user
</Limit>
</Directory>
<Directory /home/httpd/html/dspam/cgi-bin>
Options ExecCGI
AuthName "DSPAM"
AuthType Basic
AuthExternal pwauth
<Limit GET>
order deny,allow
require valid-user
</Limit>
</Directory>
You need to figure out what templates need editing yourself. I'm just playing at the moment so I edited the httpd.conf file directly. I'll change templates later
Create a directory at /home/httpd/html/dspam/
copy cgi-bin and htdocs from webui into this directory
edit configure.pl in the cgi-bin and alter the following line
$CONFIG{'WEB_ROOT'} = "/dspam/htdocs";
it's around line 36
This as far as I have gotten so far. DSpam can be access from
http://your.address/dspam/cgi-bin/dspam.cgiI'm currently trying to figure out how to link dspam into qmail via the .qmail-default file.
If anyone has suggestion or alterations please let me know. I'd like to turn this into a HOWTO once it's finished.
Thorne