Topic: Mail slow to be delivered - Probably clamav issue
==== Required information ====
- iRedMail version: 8.6
- Store mail accounts in which backend (LDAP):
- Web server (Apache):
- Linux/BSD distribution name and version: centos 6.5
- Related log if you're reporting an issue: /var/log/clamav/clamd.log
====
whilst a similar issue has been previously reported, i have not been able to solve this issue.
the problem...
mail was being slow to be delivered so i checked mailq and sure enough, there were a couple of hundred emails in the mailqueue.
also my cpu use on the server was very high (proabably as a result of all the retries that are happening - see below)
typically the message in the mailqueue was one of the following
************************************************
(connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) or
(delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
************************************************
i did some investiagtion into this and it lead me to believe there was a problem with clamav, so i tried to restart clamd
this is what i got
************************************************
# service clamd restart
Stopping Clam AntiVirus Daemon: [FAILED]
Starting Clam AntiVirus Daemon: ERROR: Can't open /var/log/clamav/clamd.log in append mode (check permissions!).
ERROR: Can't initialize the internal logger [FAILED]
******************************************************
i tried numerous solutions suggested on this and other websites from changing permission of the log file so uncommenting lines from the amavis. conf file, none of which worked
this is the typical message that i am getting in the maillog
**********************************************************************
Jun 1 06:45:58 mailer amavis[451]: (00451-01) (!)connect to /tmp/clamd.socket failed, attempt #1: Can't connect to a UNIX socket /tmp/clamd.socket: 2
Jun 1 06:45:59 mailer amavis[451]: (00451-01) (!)connect to /tmp/clamd.socket failed, attempt #1: Can't connect to a UNIX socket /tmp/clamd.socket: No such file or directory
Jun 1 06:45:59 mailer amavis[451]: (00451-01) (!)ClamAV-clamd: All attempts (1) failed connecting to /tmp/clamd.socket, retrying (2)
Jun 1 06:46:05 mailer amavis[451]: (00451-01) (!)connect to /tmp/clamd.socket failed, attempt #1: Can't connect to a UNIX socket /tmp/clamd.socket: No such file or directory
Jun 1 06:46:05 mailer amavis[451]: (00451-01) (!)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 116) line 608.\n
Jun 1 06:46:05 mailer amavis[451]: (00451-01) (!)WARN: all primary virus scanners failed, considering backups
*********************************************************************
i have spent a number of hours trying to solve the problem and i am exactly where i started from - i am clueless.
one thing that i do not think is relevant, but just may be...
i updated a couple of settings in ssl.conf last night as i reviewing the status of the ssl certificate because of cipher issues
i changed some cipher setting to be more secure.
also i noticed in a post on this issue, that yum updates may have affected the config file. i do update via yum periodically, although the last time it was done was a few days ago, and this problem has just appeared out of nowhere in the past 12 hours.
i would appreciate any help - i am getting desparate.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.