Me again, I'm still building my new mail server and I'm struggling getting clamav and exim to talk to each other. I've installed: clamav-server-0.98.7-1.el7.x86_64 clamav-lib-0.98.7-1.el7.x86_64 clamav-0.98.7-1.el7.x86_64 clamav-milter-0.98.7-1.el7.x86_64 clamav-data-0.98.7-1.el7.noarch clamav-update-0.98.7-1.el7.x86_64 clamav-milter-systemd-0.98.7-1.el7.noarch clamav-filesystem-0.98.7-1.el7.noarch exim-mon-4.84-4.el7.x86_64 exim-4.84-4.el7.x86_64 exim-greylist-4.84-4.el7.x86_64 exim-pgsql-4.84-4.el7.x86_64 spamassassin-3.4.0-1.el7.x86_64 I configured EXIM and Spamassassin. I started the services exim spamassassin clamav-milter In EXIM I configured av_scanner = clamd:/var/run/clamd.exim/clamd.sock spamd_address = 127.0.0.1 783 However when I tried to send a test email it failed saying 2015-08-24 22:45:13 1ZTzY6-0002f1-OL malware acl condition: clamd: unable to connect to UNIX socket (/var/run/clamd.exim/clamd.sock): No such file or directory 2015-08-24 22:45:13 1ZTzY6-0002f1-OL H=eddie.ringways.co.uk (gary.ringways.co.uk) [10.1.1.115] F=<gary at ringways.co.uk> temporarily rejected after DATA I've checked and clamd.sock doesn't exist. Nor does /etc/clam.conf. /etc/clam.d is empty Results from Google seem to come up with conflicting solutions, but most seem to want to use amavisd which I don't. Are there anywhere simple instructions on just using clamav and EXIM on Centos 7?
On 08/25/2015 04:16 PM, Gary Stainburn wrote:> connect to UNIX socket (/var/run/clamd.exim/clamd.sock): No such fileIf you try to locate that file, do you find it somewhere? When you list services (units) and grep with clamav, do you find some?
[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