Archive

Posts Tagged ‘lenny’

[solution] Amavis end of life problem @ debian 5

April 16th, 2010 Matthias R. Wiora 2 comments

Hello at all,

2010-04-16: I found a solution.

$ echo “deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free” >> /etc/apt/sources.list

$ apt-get update
$ apt-get install clamav
$ apt-get upgrade
$ /etc/init.d/amavis restart

- – - – - –> virus-check will work (no guarantee – for me worked it fine ;) )
DO NOT FORGET TO ENABLE VIRUSSCAN IF YOU DISABLED IT!
Please comment if it’s working for you!

Now it’s working fine:

Return-Path: <***SCREENEDFORWEB***>
Delivered-To: ***SCREENEDFORWEB***
Received: from localhost (localhost [127.0.0.1])
by euchzur-c7-v0.openwallet.de (Postfix) with ESMTP id 78A9EEE418
for <***SCREENEDFORWEB***>; Fri, 16 Apr 2010 08:59:12 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at euchzur-c7-v0.openwallet.de
Received: from euchzur-c7-v0.openwallet.de ([127.0.0.1])
by localhost (euchzur-c7-v0.openwallet.de [127.0.0.1]) (amavisd-new,
port 10024)
with ESMTP id WwPp84cAbdBK for <***SCREENEDFORWEB***>;
Fri, 16 Apr 2010 08:59:10 +0200 (CEST)
Received: by euchzur-c7-v0.openwallet.de (Postfix, from userid 33)
id 76678EE41C; Fri, 16 Apr 2010 08:59:10 +0200 (CEST)
To: <***SCREENEDFORWEB***>
Subject: test
MIME-Version: 1.0
Date: Fri, 16 Apr 2010 08:59:10 +0200
From: Wiora Matthias <***SCREENEDFORWEB***>
Message-ID: <f011502e4c0c0638b4c7cb0cff176dde@localhost>
X-Sender: ***SCREENEDFORWEB***
User-Agent: RoundCube Webmail/0.3.1
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8

I’m running some debian-mailservers. All with Debian 5.0 Lenny (Up2date)
and postfix installed. Postfix uses amavis (ClamAV) as virus-scanner and
won’t let any mail through to the mailbox, if it is not checked.

Today, 16. April 2010 I realized that all Mails has been stopped from 0:00
o’clock.
The reason is, that the new antivirus-signatures will bock using the in
debian 5.0 integrated version of amavis. Please skip scanning mails
through
configuration update (otherwise you won’t receive mails – be careful –
Mails will not be scanned by Amavis) and wait for an update or compile
some
new version of amavis.

The announcement of Amavis/ClamAV:
http://www.clamav.net/lang/en/2009/10/05/eol-clamav-094/

The source file downloadpage of Amavis/ClamAV:
http://www.clamav.net/lang/en/download/sources/

Apr 16 00:34:13 euchzur-c7-v0 amavis[1278]: (01278-03) (!!)WARN: all primary virus scanners failed, considering backups
Apr 16 00:34:13 euchzur-c7-v0 amavis[1278]: (01278-03) (!!)run_av (ClamAV-clamscan) FAILED – unexpected exit 50, output=”LibClamAV Warning:
***********************************************************

\nLibClamAV Warning: *** This version of the ClamAV engine is outdated. ***\nLibClamAV
Warning: *** DON’T PANIC! Read http://www.clamav.net/support/faq ***\nLibClamAV Warning:
***********************************************************\nLibClamAV
Error: cli_hex2str(): Malformed hexstring: This ClamAV version has reached End of Life! Please upgrade to version 0.95 or later. For more information
see www.clamav.net/eol-clamav-094 and www.clamav.net/download (length: 169)\nLibClamAV Error: Problem parsing database at line 742\nLibClamAV
Error: Can’t load daily.ndb: Malformed database\nLibClamAV Error: cli_tgzload: Can’t load daily.ndb\nLibClamAV Error: Can’t load
/var/lib/clamav//daily.cld: Malformed database\nERROR: Malformed database” Apr 16 00:34:13 euchzur-c7-v0 amavis[1278]: (01278-03) (!!)ClamAV-clamscan
av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output=”LibClamAV Warning:

***********************************************************\nLibClamAV Warning: *** This version of the ClamAV engine is outdated. ***\nLibClamAV
Warning: *** DON’T PANIC! Read http://www.clamav.net/support/faq ***\nLibClamAV Warning:
***********************************************************\nLibClamAV
Error: cli_hex2str(): Malformed hexstring: This ClamAV version has reached End of Life! Please upgrade to version 0.95 or later. For more information
see www.clamav.net/eol-clamav-094 and www.clamav.net/download (length: 169)\nLibClamAV Error: Problem parsing database at line 742\nLibClamAV
Error: Can’t load daily.ndb: Malformed database\nLibClamAV Error: cli_tgzload: Can’t load daily.ndb\nLibClamAV Error: Can’t load
/var/lib/clamav//daily.cld: Malformed database\nERROR: Malformed database” at (eval 88) line 527.
Apr 16 00:34:13 euchzur-c7-v0 amavis[1278]: (01278-03) (!!)TROUBLE in check_mail: virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED:
ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (Can’t connect to UNIX socket
/var/run/clamav/clamd.ctl: No such file or directory) at (eval 88) line 309.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit
50, output=”LibClamAV Warning: ***********************************************************\nLibClamAV
Warning: *** This version of the ClamAV engine is outdated. ***\nLibClamAV
Warning: *** DON’T PANIC! Read http://www.clamav.net/support/faq
***\nLibClamAV Warning:
***********************************************************\nLibClamAV
Error: cli_hex2str(): Malformed hexstring: This ClamAV version has reached End of Life! Please upgrade to version 0.95 or later. For more information
see www.clamav.net/eol-clamav-094 and www.clamav.net/download (length: 169)\nLibClamAV Error: Problem parsing d…
Apr 16 00:34:13 euchzur-c7-v0 amavis[1278]: (01278-03) (!!)…atabase at line 742\nLibClamAV Error: Can’t load daily.ndb: Malformed
database\nLibClamAV Error: cli_tgzload: Can’t load daily.ndb\nLibClamAV Error: Can’t load /var/lib/clamav//daily.cld: Malformed database\nERROR:
Malformed database” at (eval 88) line 527. Apr 16 00:34:13 euchzur-c7-v0 amavis[1278]: (01278-03) (!)PRESERVING
EVIDENCE in /var/lib/amavis/tmp/amavis-20100416T003406-01278 Apr 16 00:34:13 euchzur-c7-v0 postfix/smtp[2337]: 03B5EEF32F:
to=<****MAILSCREENED*>, relay=127.0.0.1[127.0.0.1]:10024, delay=912, delays=897/7.5/0.09/7.2, dsn=4.5.0, status=deferred (host
127.0.0.1[127.0.0.1] said: 451-4.5.0 Error in processing, id=01278-03, virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamd
av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (Can’t connect to UNIX socket
/var/run/clamav/clamd.ctl: No such file or directory) at (eval 88) line 309.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit
50, output=”LibClamAV Warning:

*********************************************************** 451-4.5.0 LibClamAV Warning: *** This version of the ClamAV engine is outdated. ***
451-4.5.0 LibClamAV Warning: *** DON’T PANIC! Read http://www.clamav.net/support/faq *** 451-4.5.0 LibClamAV Warning:
*********************************************************** 451-4.5.0 LibClamAV Error: cli_hex2str(): Malformed hexstring: This Cla

How to disable scanning:

Change those lines in /etc/amavis/conf.d/15-content_filter_mode:
@bypass_virus_checks_maps = (
\%bypass_virus_checks, \@bypass_virus_checks_acl,
\$bypass_virus_checks_re);

to
# @bypass_virus_checks_maps = (
# \%bypass_virus_checks, \@bypass_virus_checks_acl,
\$bypass_virus_checks_re);

/etc/init.d/amavis restart

enjoy the show