Topic: connect to /tmp/clamd.socket failed
==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Debian 7
- Related log if you're reporting an issue: N/A
====
Getting these errors every few minutes...
Jan 22 13:19:10 mail amavis[9888]: (09888-18) (!)connect to /tmp/clamd.socket failed, attempt #1: Can't connect to UNIX socket /tmp/clamd.socket: Connection refused
Jan 22 13:19:11 mail amavis[9888]: (09888-18) (!)connect to /tmp/clamd.socket failed, attempt #1: Can't connect to UNIX socket /tmp/clamd.socket: Connection refused
Jan 22 13:19:11 mail amavis[9888]: (09888-18) (!)ClamAV-clamd: All attempts (1) failed connecting to /tmp/clamd.socket, retrying (2)
Jan 22 13:19:17 mail amavis[9888]: (09888-18) (!)connect to /tmp/clamd.socket failed, attempt #1: Can't connect to UNIX socket /tmp/clamd.socket: Connection refused
Jan 22 13:19:17 mail amavis[9888]: (09888-18) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /tmp/clamd.socket (All attempts (1) failed connecting to /tmp/clamd.socket) at (eval 114) line 603.\n
Jan 22 13:19:17 mail amavis[9888]: (09888-18) (!)WARN: all primary virus scanners failed, considering backups
I've restarted clamav-daemon and amavisd but these errors pop up randomly. This is a brand new install with little to no configuration changes related to virus scanning. /tmp/clamd.socket is there and the owner is clamav so I don't think it's a perms issue.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.