Scanning email messages using AMaViS

AMaViS (A Mail Virus Scanner) is a tool that interfaces your MTA with several antivirus scanners. It supports various MTAs and comes in three branches: amavis, amavisd and amavisd-new. Only the amavisd-new branch is supported. AMaViS cooperates with ESET Mail Security by using esets_cli. Before explaining the AMaViS configurations, the impact of the ESET Mail Security functionality method is described. AMaViS does not allow scanned email message modification and denies ESETS access to clean or delete infected email attachments. As a result, the ESETS footnote with log and status dependent header fields will not be written into the email message. Also, AMaViS does not provide mail sender/recipient information. Due to this, user specific configurations are unavailable and advanced mail handling features (accept, defer, discard, reject) are limited for esets_cli. Lastly, AMaViS only scans files; it cannot use the ESETS antispam engine.

Taking into account these drawbacks, content filtering using AMaViS is recommended only if the system administrator does not require the features discussed above.

amavisd-new configuration

To install the product with amavisd-new, unpack and install the source amavisd-new-2.x.y.tgz in your installation directory. Next, configure the product with the newly installed amavisd-new. To do this, delete the clause for ‘ESET Software ESETS’ and then replace the clause for ‘ESET Software ESETS - Client/Server Version’ in the file ‘amavisd.conf’ with the following one:

### http://www.eset.com/
['ESET Software ESETS Command Line Interface', 
'@BINDIR@/esets_cli', '{}', 
[0], [1, 2, 3], qr/virus="([^"]+)"/ ],

You may need to install additional Perl modules Archive-Tar, Archive-Zip, BerkeleyDB, Compress-Zlib, Convert-TNEF, Convert-UUlib, IO-stringy, MailTools, MIME-Base64, MIME-tools, Net-Server and Unix-Syslog from:

www.cpan.org/modules

The procedure to install is as follows:

perl Makefile.PL; make; make install

After configuration, please follow the recommendations for configuring amavisd-new in the README.mta located in the Amavisd-new directory according your mail server.