Hi Bowie, Thanks for your help. The problem was that the wrong socket location was listed in clamd.conf. Once I corrected LocalSocket to read:
LocalSocket /tmp/clamd.socket And restarted clamd, amavis and postfix everything started to work. Best! tim ----- Original Message ----- From: "Bowie Bailey" <bowie_bai...@buc.com> To: clamav-users@lists.clamav.net Sent: Tuesday, December 6, 2011 10:47:22 AM Subject: Re: [clamav-users] clamav can't access socket file On 12/6/2011 7:31 AM, Tim Dunphy wrote: > Hi Ged and thank you for your reply. > >> The error message doesn't say that permission was denied, it says that >> the connection was refused. That means that nothing is listening on >> the socket. Maybe the daemon died? > Good question. Although I checked the clamav service (clamd) is running. > > [root@mail ~]# service clamd status > clamd (pid 12081) is running... > > > [root@mail ~]# netstat -tapn | grep 12081 > tcp 0 0 127.0.0.1:3310 0.0.0.0:* > LISTEN 12081/clamd > > Amavis is listening as well. > > > [root@mail ~]# netstat -tapn | grep amavis > tcp 0 0 127.0.0.1:10024 0.0.0.0:* > LISTEN 12055/amavisd (mast > tcp 0 0 127.0.0.1:46618 127.0.0.1:3306 > ESTABLISHED 17488/amavisd (ch4- > tcp 0 0 127.0.0.1:46943 127.0.0.1:3306 > ESTABLISHED 18567/amavisd (ch3- You are trying to talk to a unix socket. TCP connections are irrelevant. > Dec 6 07:04:45 li135-81 amavis[18567]: (18567-02) (!)ClamAV-clamd: Can't > connect to UNIX socket /tmp/clamd.socket: Connection refused, retrying (2) > Dec 6 07:04:51 li135-81 amavis[18567]: (18567-02) (!)ClamAV-clamd av-scanner > FAILED: run_av error: Too many retries to talk to /tmp/clamd.socket (Can't > connect to UNIX socket /tmp/clamd.socket: Connection refused) at (eval 93) > line 375.\n > Dec 6 07:04:51 li135-81 amavis[18567]: (18567-02) (!!)WARN: all primary > virus scanners failed, considering backups Check clamd.conf and make sure it is opening the socket: LocalSocket /tmp/clamd.socket -- Bowie _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml