in Mail, Web

Installing the DSPAM web frontend on lenny

This tutorial covers installing and configuring the DSPAM web frontend. Using the web frontend, the mail users can configure the sensitivity of the spam filter, see statistics and more.

I assume you already have the Apache2 web server and DSPAM daemon installed.

1. Install the dspam-webfrontend package and suexec module for the Apache2 web server.

apt-get install dspam-webfrontend apache2-suexec

2. Enable the suexec module

a2enmod suexec

3. Configure the default web site to allow access to DSPAM webfrontend. Append these lines to the file somewhere between <VirtualHost *:80></VirtualHost> (pico /etc/apache2/sites-enabled/000-default)

SuexecUserGroup dspam dspam
Addhandler cgi-script .cgi
Options +ExecCGI -Indexes
 
Alias /dspam /var/www/dspam/
<Directory /var/www/dspam/>
Addhandler cgi-script .cgi
Options +ExecCGI -Indexes
DirectoryIndex dspam.cgi
 
AuthType Basic
AuthName "DSPAM Control Center"
AuthUserFile /etc/dspam/webfrontend.htpasswd
Require valid-user
 
AllowOverride None
</Directory>

4. Create a file containing users that have access to the webfrontend

htpasswd -c /etc/dspam/webfrontend.htpasswd user1

Change user1 into the username you want to allow access. The username must match the username used by you mail server to indentify the mail box so you may want to use other authentication backend to match the one used by you mail server.

Now you can access the webfrontend by entering http://yourserver/dspam/ in your web browser.

Write a Comment

Comment

  1. Newbie Question/Comment

    I’m having trouble with Step 3
    “Configure the default web site to allow access to DSPAM webfrontend. Append these lines to the file somewhere between (pico /etc/apache2/sites-enabled/000-default)”

    I’m not clear what lines I should be appending and where?

    Thanks – Pat

  2. Hey Patrik

    There was some text missing in the tutorial. I have fixed that.

    Thanks for the hint!

    – aip

  3. I have installed the web frontend, but shouldn’t there be some css styles? I’ve got only plain html.

  4. I copied the /usr/share/dspam into a subfolder of the the www directory and updated the /etc/dspam/webfrontend.conf file. Styles are now working.

    Thanks for your guide.