If you’re using ClamAV on a cPanel server you might encounter this error soon:
LibClamAV Error: hm_addhash_str: invalid hash 06131498196ce861d -- FIXME!
LibClamAV Error: cli_loadhash: Malformed hash string at line 24728
LibClamAV Error: cli_loadhash: Problem parsing database at line 24728
LibClamAV Error: Can't load /usr/local/cpanel/3rdparty/share/clamav/securiteinfo.hdb: Invalid argument passed to function
LibClamAV Error: cli_loaddbdir(): error loading database /usr/local/cpanel/3rdparty/share/clamav/securiteinfo.hdb
ERROR: Invalid argument passed to function
For some reason ClamAV is erroring on this database. It seems like a compatibility issue, but I haven’t been able to track it down completely. What I do know is that it’s possible to quickly get Exim back online and sending mail by going around. I suggest moving the database to a backup location, and running freshclam:
mv /usr/local/cpanel/3rdparty/share/clamav/securiteinfo.hdb /root/clamdbbackup/securiteinfo.hdb.-`date +%Y%m%d`
service exim restart
And you’re back.