Install ASSP Spam Filter on Debian 4.0

Gebruikerswaardering: / 1

Install ASSP Spam Filter on Debian 4.0

This guide describes how the ASSP spam filter system is installed on a Debian Linux 4.0r6 system. I've used VMWare Fusion on MAC to install the system in.

What you need:

  • Server or VMWare image for the system
  • Debian 4.0 NetInstall CD/Image
  • Internet
  • Patience
  • Coffee

Step 1, Install the VMWare Image

Install the Debian Server with all your favorite settings, at the end, the installer will ask which components you wish to install. Deselect all options (yes, even basic system). We do this because we want a system with minimal packages.
(TO DO: Add screenshots of the install proces)

Step 2, Do the basic install of components in VMWare

  1. First we need to modify the APT sources to disable the CD as a source in the APT system, you can do this by editing the /etc/apt/sources.list
    Comment out the line that says: "deb cdrom:[Debian GNU/Linux 4.0 r6......
    Save the file and exit the editor.
  2. Run "apt-get update" to update the APT library with the new settings
  3. Update your system with all new packages since release by entering the following command: "apt-get update && apt-get upgrade && apt-get dist-upgrade". Enter "yes" on all questions
  4. Install some basic system components:
    "apt-get install ssh zip unzip", again enter "yes" on all questions.
  5. Install the basic setup of postfix. When asked, choose "Internet Site" and press enter on the next item. (Hostname)

Step 3, Install the needed Perl modules

  1. Run the following command:
    "apt-get install libcompress-zlib-perl libemail-valid-perl libfile-readbackwards-perl libmail-spf-query-perl libmail-srs-perl libnet-dns-perl libsys-syslog-perl libnet-ldap-perl libmd5-perl"

Step 4, Install ASSP

  1. Change to the /usr/src directory with the following command: "cd /usr/src"
  2. Download the latest package of ASSP (in my case the with wget:
    "wget -c"
  3. Unzip the package to it's own directory: "unzip ASSP_*".
  4. Make some preparations:
    "mkdir -p /usr/share/assp/spam
    mkdir /usr/share/assp/notspam
    mkdir /usr/share/assp/errors
    mkdir /usr/share/assp/errors/spam
    mkdir /usr/share/assp/errors/notspam"
  5. Go into the just unpacked directory: "cd ASSP*"
  6. Put all files in their correct place: "mv -f ASSP/* /usr/share/assp"
  7. Do some cleaning up: "rm -fr ASSP changelog.txt Install.txt __MACOSX/ README.txt"
  8. Set the permissions to a normal level: "chown -R 0.0 /usr/share/assp"
  9. Change to the ASSP directory: "cd /usr/share/assp"
  10. Fire it up for the first time: "perl"
    It's possible that you will get a warning message saying port 25 is allready in use, this is normal because Postfix is sitting there, we'll fix this later on!

Step 5, Configure ASSP through the web interface

  1. When all previous steps went well, you'll be able to connect to your server on the following url:
    Log in with "admin" and password "nospam4me"
  2. Set the following items:
    LocationItem Value
    Server setup
    As a deamon checked
    Run ASSP as a deamon
    Server setup
    Web admin port
    Change to a new admin port for management
    Server setup
    Run as UID
    The user ASSP runs as
    Server setup
    Webadmin Password
    Change to a new admin password
    Server setup
    Run as GID
    The group ASSP runs as
    Network setup
    Listen port
    Listen port for the spam-proxy
    Network setup
    SMTP Destination 125
    The internal Postfix
    Add all your local domains here
    Add all your local domains here
    Spam-ContolAll Test Mode OnĀ checked
    Enable all test modes, leave this on untill you are sure that all mailes are forwarded correctly