Debian Tutorials

Debian Tutorials


Step by step tutorials showing you how to install and configure various applications and services on Debian based Linux distros.

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories


Installing the DSPAM web frontend on lenny

Ástþór IPÁstþór IP

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.

Comments 4
  • Patrick
    Posted on

    Patrick Patrick

    Author

    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


  • aip
    Posted on

    aip aip

    Author

    Hey Patrik

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

    Thanks for the hint!

    – aip


  • Chris
    Posted on

    Chris Chris

    Author

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


  • Chris
    Posted on

    Chris Chris

    Author

    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.