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. 🙂

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

Leave a Reply

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