ClamAV error in maillog

If you get such a error in /var/log/maillog file (which you should parse regularly) :

Sep 30 03:13:06 mail-server update.virus.scanners: Running autoupdate for clamav
Sep 30 03:13:06 mail-server ClamAV-autoupdate[10787]: ClamAV updater /usr/local/bin/freshclam cannot be run

It means that MailScanner is looking for freshclam (ClamAV updater program) in the wrong place. Check freshclam binary location (usually in /usr/bin) and change the following lines in /etc/MailScanner/virus.scanners.conf file accordingly :
They originally are :
#clamav /usr/lib/MailScanner/clamav-wrapper /usr/local
#clamd /bin/false /usr/local
Change them in :
clamav /usr/lib/MailScanner/clamav-wrapper /usr
clamd /bin/false /usr

Restart MailScanner after this.

This entry was posted in Linux and tagged , , . Bookmark the permalink.

Comments are closed.