May 26

$ zmcontrol status
Host mail.test.com
antispam                Running
antivirus               Stopped
amavisd running pid: 16264
zmclamdctl is not running
imapproxy               Running
ldap                    Running
logger                  Running
mailbox                 Running
mta                     Running
snmp                    Running
spell                   Running
stats                   Running
# tail /opt/zimbra/log/clamd.log
LibClamAV 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)
LibClamAV Error: Problem parsing database at line 741
LibClamAV Error: Can’t load daily.ndb: Malformed database
LibClamAV Error: cli_tgzload: Invalid size in header
LibClamAV Error: Can’t load /opt/zimbra/data/clamav/db/daily.cld: Malformed database
Wed May 26 12:28:31 2010 -> ERROR: Malformed database
ERROR: Malformed database

solution :
# cd /opt/zimbra
# wget http://files2.zimbra.com/downloads/clamav/ubuntu8/clamav-0.95.1.tgz
# tar xf clamav-0.95.1.tgz
# su zimbra
$ zmcontrol stop
$ exit
# rm clamav
# ln -s clamav-0.95.1 clamav
# ls -l clamav
lrwxrwxrwx  1 root root 16 Apr 9 12:39 clamav -> /opt/zimbra/clamav-0.95.1
# su zimbra
$ zmcontrol start
Host mail.test.com
Starting ldap…Done.
Starting logger…Done.
Starting mailbox…Done.
Starting imapproxy…Done.
Starting antispam…Done.
Starting antivirus…Done.
Starting snmp…Done.
Starting spell…Done.
Starting mta…Done.
Starting stats…Done.
$ zmcontrol status
Host mail.test.com
antispam                Running
antivirus               Running
imapproxy               Running
ldap                    Running
logger                  Running
mailbox                 Running
mta                     Running
snmp                    Running
spell                   Running
stats                   Running

$ /opt/zimbra/clamav/bin/clamscan -d /opt/zimbra/data/clamav/db/
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
LibClamAV Warning: *** DON’T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
LibClamAV Warning: *** DON’T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
/opt/zimbra/.bashrc: OK
/opt/zimbra/config.2172: OK
/opt/zimbra/.bash_history: OK
/opt/zimbra/.exrc: OK
/opt/zimbra/.install_history: OK
/opt/zimbra/.viminfo: Empty file
/opt/zimbra/clamav-0.95.1.tgz: OK
/opt/zimbra/.bash_profile: OK
/opt/zimbra/.ldaprc: OK

———– SCAN SUMMARY ———–
Known viruses: 787197
Engine version: 0.95.1-broken-compiler
Scanned directories: 1
Scanned files: 8
Infected files: 0
Data scanned: 72.13 MB
Data read: 22.15 MB (ratio 3.26:1)
Time: 36.798 sec (0 m 36 s)b

Leave a Reply