2.7.0: bypass clamd scanning when daemon did not respond
Noel Jones
njones at megan.vbhcs.org
Sat Oct 22 18:54:58 CEST 2011
On 10/22/2011 11:38 AM, david touzeau wrote:
> sometimes the clamd daemon is overloaded and did not respond.
> In this case, amavisd did not want to handle mails and return error to
> postfix.
>
> Is there any option to force amavis skipping antivirus processing when
> the antivirus engine is down or did not respond in time ?
>
> I have set ['always-clean', sub {0}], in @av_scanners_backup but
> messages are always rejected when clamd socket is not available:
>
> Oct 11 20:03:07 ns1 l/sbin/amavisd (ch2-11525-02)[11525]: (11525-02)
> (!)connect to /var/run/clamav/clamav.sock failed, attempt #1: Can't
> connect to UNIX socket /var/run/clamav/clamav.sock: No such file or
> directory
>
>
> Best regards
>
>
The @av_scanners_backup works here. Maybe you can show us exactly
what you've done and/or increase your logging level so you can see
what amavisd is doing.
Note an error will still be logged about clamav.sock not responding,
but the processing will continue with the backup scanner.
-- Noel Jones
More information about the amavis-users
mailing list