I got it to work. The problem was not caused by postfix or amavis, but rather by Kaspersky. Postfix starts amavis as vscan user, so it's subprocesses inherit vscan's rights. Kasperky provided a script to automaticaly update antivirus libraries with cron (avpupdater.sh). Well, when it updates the antivirus libraries it saves them with umask 377, so if you run avpupdater.sh as user other that vscan, later AvpLinux can't load those libraries. And that's what the following error meant. amavis[5959]: Virus scanner failure: /opt/AVP/AvpLinux (error code: 65) Thanks to all for your suggestions. By the way it was my first SuSE Mail III installation. I have one master domain and about 14 vurtual domains hosted on it. Everything went flawless and is running fine.
On Tue, 19 Mar 2002, Alex Levit wrote:
I am trying to setup Kaspersky AVP on Postfix, using SuSE rpms amavis-postfix-11-92
Hum, excuse my ignorance, but where did you get this RPM from?
AVP is in /opt/AVP/AvpLinux Which version exactly? Looks like a somewhat older version, as it was renamed to kavscanner.
I get: amavis[5849]: starting. amavis perl-11 Fri Nov 9 13:42:25 GMT 2001 amavis[5849]: Virus scanner failure: /opt/AVP/AvpLinux (error code: 65) Hum, never seen this error code. Please change my $log_level = 0; to my $log_level = 5;
in /usr/sbin/amavis. Then send a test mail and send me the complete log snippet directly.
HTH
best regards, Rainer Link (SuSE Labs)
-- Rainer Link | SuSE Linux AG - The Linux Experts link@suse.de | Developer of A Mail Virus Scanner (www.amavis.org) www.suse.de | Founder OpenAntiVirus Project (www.openantivirus.org)