ESET North America Server NOD32 사용자 설명서

다운로드
페이지 50
Chapter 5. NOD32LMS basic configuration
Amavis works with NOD32LMS package using the command line interface nod32cli (see the
nod32cli manual page for details). In this place it is good to discuss the differences of the
NOD32LMS and Amavis configuration and performance as compared to the methods descibed
in the previous sections. First it has to be born in mind that the Amavis does not allow to work
with the original processed e-mail message. This means that all the manipulations with the e-
mail copy by NOD32LMS will not affect the message delivered to the final recipient. This has of
course some restrictive consequences to the NOD32LMS functionality. Particularily NOD32LMS
is not able clean or delete the infiltrations from the e-mail message. Therefore configurations in
the next subsections are done in a way that either Amavis will accept the message if it is orig-
inaly clean or it will drop the message in case it is non-clean. Further difference is in writing
short strings into the message header or writing short text into the message footnote. All this
functionality is invalid when using Amavis.
5.5.1.1. amavis
Configuration of Amavis with NOD32LMS is performed during the process of Amavis
installation. For installation, first unpack the source amavis-0.x.y.tgz and overwrite the file
amavis/av/nod32cli with this contents:
#
# ESET Software NOD32 Command Line Interface, Version 2.00
#
if ($nod32cli) {
do_log(2,"Using $nod32cli");
chop($output = ‘$nod32cli --subdir $TEMPDIR/parts‘);
$errval = retcode($?);
do_log(2,$output);
if ($errval == 0) {
# no errors, no viruses found
$scanner_errors = 0;
} elsif ($errval == 1 || $errval == 2 || $errval == 10) {
# no errors, viruses discovered
$scanner_errors = 0;
@virusname = (undef);
do_virus();
} else {
do_log(0,"Virus scanner failure: $nod32cli (error code: $errval)");
}
}
# List of Return Codes
#define NOD32_EXIT_CODE_OK
0
#define NOD32_EXIT_CODE_CLEANED
1
#define NOD32_EXIT_CODE_DELETED
2
#define NOD32_EXIT_CODE_INFECTED
10
#define NOD32_EXIT_CODE_INTERNAL_ERROR
100
#define NOD32_EXIT_CODE_ERROR_IN_ARCHIVE
101
#define NOD32_EXIT_CODE_OPEN_ERROR
102
#define NOD32_EXIT_CODE_OTHER_STATUS
50
31