constant restart

Mark Sapiro mark at msapiro.net
Wed Aug 21 15:42:35 UTC 2019


On 8/21/19 4:48 AM, Rick Gutierrez wrote:
> 
> yes reboot the server , ls -lah /var/run/clamd.scan/clamd.sock
> srw-rw-rw- 1 clamscan mtagroup 0 Aug 21 05:42 /var/run/clamd.scan/clamd.sock
> 
> clamd is runnning on the port 3310

Clamd should either use a unix socket or a tcp socket, not both.

For a unix socket, clamd.conf should have

LocalSocket /var/run/clamd.scan/clamd.sock
FixStaleSocket true
LocalSocketGroup clamscan
LocalSocketMode 666

and should not define TCPSocket or TCPAddr

and MailScanner should have

Clamd Socket = /var/run/lamd.scan/clamd.sock

For a TCP socket, clamd.conf should have

TCPSocket 3310
TCPAddr 127.0.0.1

and not define LocalSocket, FixStaleSocket, LocalSocketGroup or
LocalSocketMode

and MailScanner should have

Clamd Port = 3310
Clamd Socket = 127.0.0.1

In your case, if you have TCPSocket and TCPAddr defined in clamd.conf, I
think just removing them may fix the issue.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the MailScanner mailing list