13 januari 2009
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
Step 1, Install the VMWare ImageInstall 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
- 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.
- Run "apt-get update" to update the APT library with the new settings
- 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
- Install some basic system components:
"apt-get install ssh zip unzip", again enter "yes" on all questions.
- 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
- 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
- Change to the /usr/src directory with the following command: "cd /usr/src"
- Download the latest package of ASSP (in my case the 184.108.40.206) with wget:
"wget -c http://surfnet.dl.sourceforge.net/sourceforge/assp/ASSP_220.127.116.11-Install.zip"
- Unzip the package to it's own directory: "unzip ASSP_*-Install.zip".
- Make some preparations:
"mkdir -p /usr/share/assp/spam
- Go into the just unpacked directory: "cd ASSP*"
- Put all files in their correct place: "mv -f ASSP/* /usr/share/assp"
- Do some cleaning up: "rm -fr ASSP changelog.txt Install.txt __MACOSX/ README.txt"
- Set the permissions to a normal level: "chown -R 0.0 /usr/share/assp"
- Change to the ASSP directory: "cd /usr/share/assp"
- Fire it up for the first time: "perl assp.pl"
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
- 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"
- Set the following items:
Location Item Value Description Server setup As a deamon checked Run ASSP as a deamon Server setup Web admin port xxxxx Change to a new admin port for management Server setup Run as UID nobody The user ASSP runs as Server setup Webadmin Password xxxxx Change to a new admin password Server setup Run as GID nogroup The group ASSP runs as Network setup Listen port 25 Listen port for the spam-proxy Network setup SMTP Destination 125 The internal Postfix Relaying AcceptAllMail xxxx Add all your local domains here Relaying localDomains xxxx Add all your local domains here Spam-Contol All Test Mode On checked Enable all test modes, leave this on untill you are sure that all mailes are forwarded correctly