[root at ollie2 ~]# find / -iname clamd.sock [root at ollie2 ~]# systemctl list-unit-files --type=service [.....] clamav-milter.service enabled exim.service enabled spamassassin.service enabled [.....] [root at ollie2 ~]# ps ax|grep cla[m] [root at ollie2 ~]# Starting / restarting the clamav service does not generate any errors but the process doesn't run Looking at the unit file /etc/systemd/system/multi-user.target.wants/clamav-milter.service it is expecting a config file of /etc/mail/clamav-milter.conf so I've edited that file to comment out the 'example' line. In here it defines the socket as /var/run/clamav-milter/clamav-milter.socket However, after saving this file the service still fails to start and the socket still doesn't exist On Tuesday 25 August 2015 14:19:36 Mihamina Rakotomandimby wrote:> On 08/25/2015 04:16 PM, Gary Stainburn wrote: > > connect to UNIX socket (/var/run/clamd.exim/clamd.sock): No such file > > If you try to locate that file, do you find it somewhere? > When you list services (units) and grep with clamav, do you find some? > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos-- Gary Stainburn Group I.T. Manager Ringways Garages http://www.ringways.co.uk
On 08/25/2015 04:36 PM, Gary Stainburn wrote:> so I've edited that file to comment out the 'example' line. In here it defines > the socket as > > /var/run/clamav-milter/clamav-milter.socket > > However, after saving this file the service still fails to start and the > socket still doesn't existDoes the directory /var/run/clamav-milter/ exist and is it traversable and writable by the clamav user is running as? Socket creation mostly doesnt include recursive operation (creating the directory)
On Tuesday 25 August 2015 14:44:55 Mihamina Rakotomandimby wrote:> Does the directory /var/run/clamav-milter/ exist and is it traversable > and writable by the clamav user is running as? > Socket creation mostly doesnt include recursive operation (creating the > directory)It looks like I'm barking up the wrong tree here. When I run the command in the terminal I get [root at ollie2 clamav-milter]# /usr/sbin/clamav-milter -c /etc/mail/clamav-milter.conf --nofork=yes ERROR: No ClamdSocket specified ERROR: Failed to init the socket pool [root at ollie2 clamav-milter]# It looks like I don't need clamav-milter as it seems to be wanting access to the clamd socket in exactly the same way as EXIM, i.e., EXIM wants to talk directly to clamd and not clamav-milter. The latter seems to be an interface for sendmail. I'm now looking at getting the clamd service running. I installed clamav-server-sysvinit-0.98.7-1.el7.noarch clamav-server-systemd-0.98.7-1.el7.noarch which I expected to give the the systemd unit file as well as the old init scripts. However I can't see either. I also still don't have a /etc/clamd.conf