Amavisd-new Installation

September 19, 2008 Virus Control

This program is used to tie the scanning programs ClamAv and SpamAssassin to Postfix.  Download the program from http://www.ijs.si/software/amavisd/.  Place the download in a location where you want to run the program from for example /usr/local.  Be sure you have perl version 5.8.2 or later for amavisd-new as it is a perl script.
Unpack the program in /usr/local with:

tar zxvf amavisd-new-2.6.1.tar.gz

Move into the directory.
cd amavisd-new-2.6.1

The file to execute is amavisd.  Once installed you will be able to move the executable to the desired location.
cp amavisd /usr/sbin/
chown root /usr/sbin/amavisd
chmod 755  /usr/sbin/amavisd

You also need to move the copy of amavisd.conf to the /etc directory.
cp  avmavisd.conf /etc/
chown root:vscan /etc/amavisd.conf
chmod 640 /etc/amavisd.conf

To start the program it is best to start it with the debug mode.

./amavisd debug

You will then be able to determine what kind of issues you need to resolve.  Before you can actually get the program to work you need to do the following:

1. Create a user and group
2. Create necessary directories and change permissions
3. Add the required Perl modules
4. Edit the /etc/amavisd.conf file

Tags: , ,

Comments are closed.