28
@virusname=($output=~/virus=“([^“]+)“/g);
do_virus();
}else{
do_log(0,“Virusscannerfailure:$nod32cli(errorcode:$errval)“);
}
}
Note that the above modication provides accepting of the message only in case it was originally clean. The rest
of non-error states returned by the anti-virus will be treated in a way that the message will be dropped. The messages
resolved by the anti-virus as cleaned/deleted will be dropped as well as nod32cli module has no exclusive access to
the message and therefore is not able to guarantee its cleaning/deletion. Above modication also treats the „error in
archive“ status (3) of nod32cli in a way that the message is rejected. Particularly, messages with the password protected
attachment are treated in this way as it is not possible to mark the messages with the „not scanned“ status. In order to
change these default settings user is free to modify the above text, however, it is not recommended unless he is sure
about the consequences. Please, read the discussion at the end of foreword to this section to get more information on
the product functionality when congured with Amavis.
Also, if you are running the RedHat Ready and/or Novell (SuSE) Ready variation of this product, you have to update
your PATH environment variable by issuing the following command:
exportPATH=“$PATH:/opt/eset/nod32/bin“
For successful installation you may need to install additional software like arc, unarj, unrar, zoo. You also have to
make a symlink in /usr/bin from uncompress to gzip and create the user amavis in group amavis with home dir /var/
amavis. Rename (at least for the amavis conguration) the le ‘/usr/sbin/nod32‘ to ‘/usr/sbin/nod32.bak‘. Now continue
with the usual installation process (./congure, make, make install) and follow the rules README.mta according your
mail server.
4.4.1.2. amavisd
Conguration of Amavisd is performed during the process of Amavisd installation. Unpack the source amavisd-
0.x.tgz and follow the rules for amavis described in previous section of this guide.
Note: After ’make install’ you may need to move ‘/usr/etc/amavisd.conf‘ to ‘/etc‘ and do a ’make install’ again. Don’t
forget to run amavisd as user amavis after nishing the installation.
4.4.1.3. amavisd-new
In order to install the product with Amavisd-new, unpack and install the source amavisdnew- 2.x.y.tgz in your
installation directory. Now to congure the product with newly installed Amavisd-new, delete the clause for ’ESET
Software NOD32’ and replace the clause for ’ESET Software NOD32 - Client/Server Version’ in le ’amavisd.conf’ with
the following one:
###http://www.eset.com/
[’ESETSoftwareNOD32CommandLineInterfacev2.52’,
’/usr/bin/nod32cli’,’--subdir{}’,
[0],[1,2],qr/virus=“([^“]+)“/],
Note that in RedHat Ready and Novell (SuSE) Ready variation of this product an appropriate script will look like
this:
NOD32 for Linux/BSD Mail Server