Integrating the AXIGEN Messaging Solution with Amavis
Integrating the AXIGEN Messaging Solution with AmavisThis document describes the steps required to perform an integration of the AXIGEN Mail Server
with Amavis, in order to insure antivirus protection and functionality.
Amavis is a generic interface used to connect a mail server to a number
of antivirus products. PrequisitesOperating systems The integration was successfully tested on the following operating systems:
Amavisd-new version 2.4.2 must be used in this setup. Antivirus products One of the following antivirus products can be used:
Setting-up AmavisFor the AXIGEN Mail Server and the desired antivirus product, please follow the installation procedure described in the user’s manual.Dependencies Amavisd-new requires the following software packages in order to run properly:
Below you will find a list of distribution-specific instructions on how to make sure all the dependencies are installed. Make sure you have the specific package management tools (yum, apt-get, etc) installed and properly configured before continuing.
Run the following commands:
# yum -y install amavisd-new # yum -y remove amavisd-new
Run the following commands:
# urpmi amavisd-new # rpme -e amavisd-new
Run the following commands:
# apt-get update # apt-get -y install amavisd-new # apt-get --purge -y remove amavisd-new
Download the 1.42 version of the Compress::Zlib perl module (from this link), uninstall the old version and install the new one:
# dpkg -r --force-all libcompress-zlib-perl # dpkg -i --force-all libcompress-zlib-perl_1.42-1_i386.deb Note: Forcing the uninstall steps and the installation of a package is not a standard procedure and may result in dependency problems. Please use with care.
Run the following commands:
# apt-get update # apt-get install amavisd-new # apt-get remove amavisd-new Download the 5.420 version of MIME-Tools perl module (from this link) and install it:
# dpkg -i libmime-perl_5.420-0.1_all.deb InstallationAll the installation process must be performed while logged-in as the ‘root’ user.
1. Download and unpack amavis:
# mkdir /tmp/amavis/
# cd /tmp/amavis/
# wget http://www.ijs.si/software/amavisd/amavisd-new-2.4.2.tar.gz
# tar -zxf amavisd-new-2.4.2.tar.gz 2. Set-up the Amavis environment
# mkdir /var/amavis /var/amavis/tmp /var/amavis/var /var/amavis/home
# chown -R axigen:axigen /var/amavis # chmod -R 750 /var/amavis
# cp /tmp/amavis/amavisd-new-2.4.2/amavisd /usr/local/sbin/
# chown root /usr/local/sbin/amavisd # chmod 755 /usr/local/sbin/amavisd
# cp /tmp/amavis/amavisd-new-2.4.2/amavisd.conf /etc/amavisd.conf
# chown root /etc/amavisd.conf # chmod 644 /etc/amavisd.conf
# mkdir /var/virusmails
# chown axigen:axigen /var/virusmail # chmod 750 /var/virusmails
# mkdir /usr/share/ # cp -Rp /tmp/amavis/amavisd-new-2.4.2 /usr/share/ 3. Modify the amavis configuration
Locate the following variables and modify them as below: $daemon_user = 'axigen'; Please remember to uncomment (remove the leading hash ‘#’) the ‘final_*_destiny’ configuration variables before setting them to the values specified above.
Note: the ‘D_BOUNCE’ option is not supported by Axigen. Locate the following configuration variable and enable it by removing the leading hash (#): @bypass_spam_checks_maps = (1); Locate the following configuration variable and enable it by removing the leading hash (#):
$myhostname = 'host.example.com'; Replace ‘host.example.com’ with your specific hostname.
Under the line: $policy_bank{'AM.PDP-SOCK'} = { protocol=>'AM.PDP' }; insert:
$protocol='AM.PDP'; Under the line:
$virus_admin = "virusalert\@$mydomain"; insert:
undef $virus_admin; Antivirus configurationIn order to install the desired antivirus, the procedure described in the user’s manual should be followed. For the Kaspersky Kav4Mailservers, the following additional steps should be taken:
# chown -R axigen:axigen /opt/kav/
AXIGEN configurationA filter must be defined in order to instruct AXIGEN to send email messages to Amavis for scanning.
name: amavis
2. Activate the Amavis filter
priority: 100 or below,
3. Save configuration changes
Starting-upAntivirus Follow the procedure in the specific antivirus manual to start the service. Normally, the antivirus is automatically started after installation. Amavis Run the following command: # amavisd start AXIGEN
The AXIGEN Mail Server is started with the command: # /etc/init.d/axigen start Testing the solution
|






Recent comments
6 hours 7 min ago
6 hours 53 min ago
11 hours 15 min ago
12 hours 11 min ago
17 hours 56 min ago
19 hours 7 min ago
22 hours 38 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 4 hours ago