SOLVED: Re: Assigning a virus scanner to a policy bank (AV: Not an ARRAY reference...)
Patrick Ben Koetter
p at state-of-mind.de
Wed Jun 13 13:36:04 CEST 2012
* Antoine Nguyen <tonio at ngyn.org>:
> Le 12/06/2012 23:57, Patrick Ben Koetter a écrit :
> Patrick,
>
> have you already tried like this ?
>
> $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 ],
> ),
> };
Almost! Using square brackets did the trick:
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 ],
],
};
p at rick
--
All technical questions asked privately will be automatically answered on the
list and archived for public access unless privacy is explicitely required and
justified.
saslfinger (debugging SMTP AUTH):
<http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>
More information about the amavis-users
mailing list