<html><body><div style="font-family: Helvetica; font-size: 12pt; color: #000000"><div>rICK,<br></div><div><br data-mce-bogus="1"></div><div>Did you read this: </div><div><br data-mce-bogus="1"></div><div><a href="https://serverfault.com/questions/948520/mailscanner-error-cannot-find-socket">https://serverfault.com/questions/948520/mailscanner-error-cannot-find-socket</a><br data-mce-bogus="1"></div><div><a href="https://serverfault.com/questions/948299/socket-access-for-clamdscan">https://serverfault.com/questions/948299/socket-access-for-clamdscan</a><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br></div><div data-marker="__SIG_PRE__"><div>Met vriendelijke groet, Best regards,</div><div><br></div><div><br style="font-family: helvetica;"><span style="font-family: helvetica;">Thom van der Boon</span><br style="font-family: helvetica;"><span style="font-family: helvetica;">E-Mail: thom@vdb.nl</span></div><div><br></div><div><br style="font-family: helvetica;"><br style="font-family: helvetica;"><span style="font-family: helvetica;">=====</span></div><div><br></div><div><br></div><div><br></div><div><span style="font-family: helvetica;">Thom.H. van der Boon b.v.</span><br style="font-family: helvetica;"><span style="font-family: helvetica;"></span><span style="font-family: helvetica;">Transito 4</span></div><div><span style="font-family: helvetica;">6909 DA  Babberich<br style="font-family: helvetica;"></span><span style="font-family: helvetica;">Tel.: <a href="tel:+31884272727" target="_blank">+31 (0)88 4272727</a></span><br style="font-family: helvetica;"><span style="font-family: helvetica;">Fax: +31 (0)88 4272789</span><br style="font-family: helvetica;"><span style="font-family: helvetica;">Home Page: http://www.vdb.nl/</span></div></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>Van: </b>"Rick Gutierrez" <xserverlinux@gmail.com><br><b>Aan: </b>"MailScanner Discussion" <mailscanner@lists.mailscanner.info><br><b>Verzonden: </b>Woensdag 21 augustus 2019 13:48:59<br><b>Onderwerp: </b>Re: constant restart<br></div><div><br></div><div data-marker="__QUOTED_TEXT__">El mar., 20 ago. 2019 a las 23:31, Thom van der Boon (<thom@vdb.nl>) escribió:<br>><br>> Rick,<br>><br>> Did you disable selinux on CentOS (and reboot)?<br>> What is the permission and filetype of the clamd.sock : ls -lah /var/run/clamd.scan/clamd.sock<br>> clamd can be running, but at what port is it listening? netstat -ln<br>> Disable your firewall temporary, restart MailScanner and run Mailscanner --lint<br>><br>> Met vriendelijke groet, Best regards,<br>><br>><br><br>yes reboot the server , ls -lah /var/run/clamd.scan/clamd.sock<br>srw-rw-rw- 1 clamscan mtagroup 0 Aug 21 05:42 /var/run/clamd.scan/clamd.sock<br><br>clamd is runnning on the port 3310<br><br>[root@escm ~]# netstat -ln<br>Active Internet connections (only servers)<br>Proto Recv-Q Send-Q Local Address           Foreign Address         State<br>tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN<br>tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN<br>tcp        0      0 127.0.0.1:3310          0.0.0.0:*               LISTEN<br>tcp        0      0 127.0.0.1:783           0.0.0.0:*               LISTEN<br>tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN<br>tcp6<br><br>disabled my firewall and run test debug of MailScanner<br><br> MailScanner --debug --lint<br>Trying to setlogsock(unix)<br><br>Reading configuration file /etc/MailScanner/MailScanner.conf<br>Reading configuration file /etc/MailScanner/conf.d/README<br>Read 1500 hostnames from the phishing whitelist<br>Read 6730 hostnames from the phishing blacklists<br>Config: calling custom init function SQLBlacklist<br>Config: calling custom init function MailWatchLogging<br>Config: calling custom init function SQLWhitelist<br><br>Checking version numbers...<br>Version number in MailScanner.conf (5.1.3) is correct.<br><br>Your envelope_sender_header in spamassassin.conf is correct.<br>MailScanner setting UID to  (89)<br><br>Checking for SpamAssassin errors (if you use it)...<br>Using SpamAssassin results cache<br>Connected to SpamAssassin cache database<br>SpamAssassin reported no errors.<br>Connected to Processing Attempts Database<br>Created Processing Attempts Database successfully<br>There are 502 messages in the Processing Attempts Database<br>Using locktype = posix<br>MailScanner.conf says "Virus Scanners = clamd"<br>Found these virus scanners installed: clamav<br>===========================================================================<br>Filename Checks: Windows/DOS Executable (1 eicar.com)<br>Other Checks: Found 1 problems<br>Virus and Content Scanning: Starting<br>Cannot find Socket (/var/run/clamd.scan/clamd.sock) Exiting! at<br>/usr/share/MailScanner/perl/MailScanner/SweepViruses.pm line 2159.<br>Virus Scanning: No virus scanners worked, so message batch will be<br>tried again at /usr/share/MailScanner/perl/MailScanner/SweepViruses.pm<br>line 506.<br>^C<br><br>thanks for the support guys<br><br><br>-- <br>rickygm<br><br>http://gnuforever.homelinux.com<br><br><br>-- <br>MailScanner mailing list<br>mailscanner@lists.mailscanner.info<br>http://lists.mailscanner.info/mailman/listinfo/mailscanner<br></div></div></body></html>