AVAST INTEGRATION INTO AMAVIS
-----------------------------

AMaViS is an interface between mailer (MTA) and content checkers,
which is already prepared for integration with mail scanners.
This section describes how to integrate Avast into AMaViS.

Integration of Avast into AMaViS covers updating AMaViS configuration
and enabling access to emails going through AMaViS to be scanned by
Avast. This can be divided into these three steps:

1) Integrating Avast antivirus
------------------------------
Open the AMaViS configuration file (e.g. /etc/amavis/conf.d/50-user) and insert
the following lines into the file:

  @av_scanners = (
    ### http://www.avast.com/
    ['Avast', '/usr/bin/scan', '{}', [0], [1], qr/\t(.+)/m ]
  );


2) Enabling virus scanning
--------------------------
Then open the AMaViS content filter configuration file
(e.g. /etc/amavis/conf.d/15-content_filter_mode) and enable antivirus checking
mode by uncommenting the 'bypass_virus_checks' lines.


3) Update of access permissions
-------------------------------
Finally enable the Avast daemon to scan emails going through AMaViS:

  $ sudo usermod -G amavis -a avast
