ERROR: Malformed database for clamd

In cPanel server if you are getting the following error when restarting exim, then follow this steps:

# /etc/init.d/exim restart
Shutting down clamd:                                       [FAILED]
Shutting down exim:                                        [  OK  ]
Shutting down spamd:                                       [  OK  ]
Starting clamd: LibClamAV Error: cli_dbgets: Invalid data or internal buffer too small
LibClamAV Error: cli_tgzload: File main.mdb not correctly loaded
LibClamAV Error: Can't load /usr/share/clamav/main.cld: Malformed database
LibClamAV Error: cli_loaddbdir(): error loading database /usr/share/clamav/main.cld
ERROR: Malformed database
                                                           [FAILED]
Starting exim:                                             [  OK  ]
0 processes (antirelayd) sent signal 9
/usr/local/cpanel/scripts/update_sa_rules: running in background

Solution:

Do freshclam.

#freshclam

Restart exim.

#/etc/init.d/exim restart

This will fix the problem. 🙂

Arunlal Ashok

Sr. Linux Server Administrator. I'm managing Linux servers since 2012. I started this blog to share and discuss my ideas. Check My Profile in uPwork (oDesk) and create a job, if you need any administration help. Thanks!!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *