|
From: Manuel M. C. <mmo...@ci...> - 2004-04-19 14:03:34
|
Hi
I`m a newbie in amavisd-new... I try to configure postfix+amavisd-new+Avp
in a Debian box:
a) Install Postfix. Modify master.cf file as documentation indicates.
b) Install Avp (v3.0). After inslallation, create AvpDaemonClient
(/opt/AVP/DaemonClients/Sample/) and copy it to /opt/AVP. Daemon and
scanner runs ok.
c) Install Amavisd-new (20030616p7-3). Modify amavisd.conf as:
@av_scanners = (
### The kavdaemon and AVPDaemonClient have been removed from Kasperky
### products and replaced by aveserver and aveclient
['KasperskyLab AVPDaemonClient',
[
'/opt/AVP/kavdaemon',
'kavdaemon',
'/opt/AVP/AvpDaemonClient'
'AvpDaemonClient'
],
"-f=$TEMPBASE {}", [0,8], [3,4,5,6], qr/infected: ([^\r\n]+)/ ]
# change the startup-script in /etc/init.d/kavd to:
# DPARMS="-* -Y -dl -f=/var/amavis /var/amavis"
# (or perhaps: DPARMS="-I0 -Y -* /var/amavis" )
# adjusting /var/amavis above to match your $TEMPBASE.
# The '-f=/var/amavis' is needed if not running it as root, so it
# can find, read, and write its pid file, etc., see 'man kavdaemon'.
# defUnix.prf: there must be an entry "*/var/amavis" (or whatever
# directory $TEMPBASE specifies) in the 'Names=' section.
# cd /opt/AVP/DaemonClients; configure; cd Sample; make
# cp AvpDaemonClient /opt/AVP/
# su - vscan -c "${PREFIX}/kavdaemon ${DPARMS}"
);
I try amavisd-new debug, and simulate a mail sent to amavisd and see if it
gets delivered via Postfix to its recipient. With a clear message log this
error:
Apr 19 14:41:23 debian amavisd-new[585]: (00585-01) Using KasperskyLab
AVPDaemonClient: /opt/AVP/AvpDaemonClient -f=/var/lib/amavis
/var/lib/amavis/amavis-20040419T144115-00585/parts
Apr 19 14:41:23 debian amavisd-new[585]: (00585-01) run_command: [589]
/opt/AVP/AvpDaemonClient -f=/var/lib/amavis
/var/lib/amavis/amavis-20040419T144115-00585/parts </dev/null 2>&1
Apr 19 14:41:23 debian amavisd-new[585]: (00585-01) run_av:
/opt/AVP/AvpDaemonClient status=255 (65280 ),AvpTestStart cannot connected
to kavdaemon\nReturn code: -1
Apr 19 14:41:23 debian amavisd-new[585]: (00585-01) Virus scanner failure:
/opt/AVP/AvpDaemonClient (exit status: 255)
In console this error message appear:
451 4.5.0 Error in processing, id=00586-01, virus_scan FAILED: ALL VIRUS
SCANNERS FAILED:
Someone can help me?
Thanks.
|