Thanks Vlk,
I'm not exper in c, anyway I try cc avastlite.c -o avastlite
avastlite --help
-_, --console STDIN/STDOUT mode
-t, --timeout Operation timeout in seconds (max. 1 minute)
-?, --help Give this help list
--usage Give a short usage message
-V, --version Print program version
start avastd (dazuko installed)
start amavisd with
# Avast4Linux AntiVirus
$avast4 = "/usr/bin/avastlite";
if ($avast4) {
do_log(2,"Using $avast4");
chop($output = `$avast4 --console $TEMPDIR/parts`);
$errval = retcode($?);
do_log(2,$output);
if ($errval == 1) { # no errors, no viruses found
$scanner_errors = 0;
} elsif ($errval && $errval == 2) { # no errors, viruses discovered
$scanner_errors = 0;
@virusname = ($output =~ /Infected: (.+)/g);
pop @virusname;
do_virus();
} else {
do_log(0,"Virus scanner failure: $avast4 (error code: $errval)");
}
}
but no result
I tried also switch from avast -a -c -i etc...
amavisd[7202]: All virus scanners failed - mail requeued
do_exit:513 - ending execution with 75
Virus scanner failure: /usr/bin/avastlite (error code: 32)
All virus scanners failed - mail requeued
ciao... Paolo