Assigning a virus scanner to a policy bank (AV: Not an ARRAY reference...)
Patrick Ben Koetter
p at state-of-mind.de
Tue Jun 12 23:57:48 CEST 2012
I'd like to use different virus scanners for different policy banks, but I
fail to specify them correctly in a $policy_bank.
>From reading amavisd-new code I can tell @av_scanners is part of
'dynamic_confvars' and that makes it a candidate for per-policy bank settings,
but how do I do specify the virus scanner?
Here's what I have at the moment, which causes errors:
$interface_policy{'10024'} = 'avira';
$policy_bank{'avira'} = {
av_scanners => ['Avira SAVAPI', \&ask_daemon,
["*", 'savapi:/var/run/avira/savapi.sock', '000000'],
qr/^(200|210) /m, qr/^(310|420|319) /m,
qr/^(310|420) (.+?) ; \S* ; (?:.*)$/m ]
};
It causes these log messages:
Jun 12 11:52:23 scanner amavis[19678]: (19678-19) (!!)AV: Not an ARRAY reference at (eval 125) line 919.
Jun 12 11:52:23 scanner amavis[19678]: (19678-19) (!!)TROUBLE in check_mail: virus_scan FAILED: AV: 1
p at rick
--
state of mind ()
http://www.state-of-mind.de
Franziskanerstraße 15 Telefon +49 89 3090 4664
81669 München Telefax +49 89 3090 4666
Amtsgericht München Partnerschaftsregister PR 563
More information about the amavis-users
mailing list