Topic: ClamAV fails to load
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Ubuntu 14
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Related log if you're reporting an issue:
====
Hi all, I recently set up an email server, and I seem to be encountering an error with ClamAV antivirus. I don't much experience with iRedMail so apologies if this question is obvious/easy to solve. Any help would be greatly appreciated. Thanks!!
(From what I can tell ClamAV seems to not be able to find a critical file for its functionality. However, I'm not sure how to fix this.)
Anyway, here is the relevant part of the log:
May 28 06:15:09 mail amavis[5931]: (05931-10) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
May 28 06:15:10 mail amavis[5931]: (05931-10) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
May 28 06:15:10 mail amavis[5931]: (05931-10) (!)ClamAV-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
May 28 06:15:16 mail amavis[5931]: (05931-10) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
May 28 06:15:16 mail amavis[5931]: (05931-10) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (All attempts (1) failed connecting to /var/run/clamav$
May 28 06:15:16 mail amavis[5931]: (05931-10) (!)WARN: all primary virus scanners failed, considering backups
May 28 06:15:19 mail amavis[5931]: (05931-10) (!)run_av (ClamAV-clamscan) FAILED - unexpected exit 2, output="WARNING: Ignoring deprecated option --disable-summary\nLibClamAV Error: mpool_malloc(): Can't$
May 28 06:15:19 mail amavis[5931]: (05931-10) (!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 2, output="WARNING: Ignoring deprecated option --disable-summary\nLibClamAV Error: mp$
May 28 06:15:19 mail amavis[5931]: (05931-10) (!)...40) line 899.
May 28 06:15:19 mail amavis[5931]: (05931-10) (!!)AV: ALL VIRUS SCANNERS FAILED
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.