<div dir="ltr"><div class="gmail_extra">Running MailScanner 4.84.5 on CentOS 6.5 with ClamAV 0.98.3/19312/Tue Aug 26 15:54:25 2014.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Starting Aug 22 15:30 I started getting these type of messages in maillog:</div>
<div class="gmail_extra">MailScanner[6035]: Clamd::ERROR:: COULD NOT CONNECT TO CLAMD, RECOMMEND RESTARTING DAEMON :: .<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Seeing this kind of thing in maillog:</div>
<div class="gmail_extra"><div class="gmail_extra">Aug 26 18:59:18 mail MailScanner[16465]: New Batch: Scanning 1 messages, 15192 bytes</div><div class="gmail_extra">Aug 26 18:59:19 mail MailScanner[16465]: Virus and Content Scanning: Starting</div>
<div class="gmail_extra">Aug 26 18:59:19 mail MailScanner[16465]: Clamd::ERROR:: COULD NOT CONNECT TO CLAMD, RECOMMEND RESTARTING DAEMON :: .</div><div class="gmail_extra">Aug 26 18:59:19 mail MailScanner[16465]: Virus Scanning: Clamd found 1 infections</div>
<div class="gmail_extra">Aug 26 18:59:20 mail MailScanner[16465]: Virus Scanning: Found 1 viruses</div><div class="gmail_extra">Aug 26 18:59:20 mail MailScanner[16465]: Spam Checks: Starting</div><div><br></div><div>The "found 1 infections" is a false alarm.</div>
<div><br></div><div>Not happening all the time but when the server is busier, eg, few or no errors over the weekend.</div><div><br></div><div>I'm checking the maillog hourly and restarting it with:</div><div>/etc/init.d/clamd start<br>
</div><div><br></div><div>Anyone else come across this problem?</div><div><br></div><div>Some settings from clamd.conf:</div><div><div>LocalSocket /var/run/clamav/clamd.sock</div><div>FixStaleSocket yes</div><div>TCPSocket 3310</div>
<div>MaxThreads 50</div></div><div><br></div><div>Likewise from MailScanner.conf:</div><div><div>Clamd Port = 3310</div><div>Clamd Socket = /var/run/clamav/clamd.sock</div><div>Clamd Lock File = # /var/lock/subsys/clamd</div>
<div>Clamd Use Threads = yes</div></div><div><br></div><div>Might the Use Threads setting be worth changing?</div><div><br></div><div><br></div><div><br></div></div></div>