<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Try finding any errors/delays in the output of:</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><span>spamassassin -D --lint 2>&1 > debug.log</span><br>
</p>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> MailScanner <mailscanner-bounces+djones=ena.com@lists.mailscanner.info> on behalf of Denis Beauchemin <Denis.Beauchemin@usherbrooke.ca><br>
<b>Sent:</b> Tuesday, August 28, 2018 7:39 AM<br>
<b>To:</b> MailScanner Discussion<br>
<b>Subject:</b> RE: What is causing this delay?</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hello Jerry,<br>
<br>
Installed one but it didn't do any good:<br>
08:35:02: Checking for SpamAssassin errors (if you use it)...<br>
08:35:02: Using SpamAssassin results cache<br>
08:35:02: Connected to SpamAssassin cache database<br>
08:35:12: SpamAssassin reported no errors.<br>
08:35:12: Connected to Processing Attempts Database<br>
<br>
dig <a href="http://www.apache.org">www.apache.org</a> returns:<br>
;; Query time: 0 msec<br>
;; SERVER: 127.0.0.1#53(127.0.0.1)<br>
;; WHEN: Tue Aug 28 08:36:12 EDT 2018<br>
;; MSG SIZE  rcvd: 376<br>
<br>
Any other suggestions ?<br>
<br>
Denis<br>
<br>
-----Message d'origine-----<br>
De : MailScanner <mailscanner-bounces+denis.beauchemin=usherbrooke.ca@lists.mailscanner.info> De la part de Jerry Benton<br>
Envoyé : 27 août 2018 23:27<br>
À : 'MailScanner Discussion' <mailscanner@lists.mailscanner.info><br>
Objet : RE: What is causing this delay?<br>
<br>
Setup a caching DNS server on the same box and you should see those numbers drop from 10 seconds to about 2 seconds or less. Just finished testing this in the lab.
<br>
<br>
<br>
--<br>
Jerry Benton<br>
<a href="http://www.mailborder.com">www.mailborder.com</a><br>
+1   (843) 800-8605<br>
+44 (020) 3883-8605<br>
<br>
<br>
-----Original Message-----<br>
From: MailScanner <mailscanner-bounces+jerry.benton=mailborder.com@lists.mailscanner.info> On Behalf Of Denis Beauchemin<br>
Sent: Monday, August 27, 2018 09:30<br>
To: mailscanner@lists.mailscanner.info<br>
Subject: What is causing this delay?<br>
<br>
Hello all,<br>
<br>
After many years away from MailScanner I installed new MS servers a couple of weeks ago. I’m happy to see that MS has continued to thrive!<br>
<br>
Now my problem: my 2 new servers are running into some timeout during messages scan as can be seen here:<br>
[root@smtpi3 conf.d]# MailScanner --lint 2>&1 | while true; do read l; echo "$(date +%T): $l";done<br>
08:01:56: Trying to setlogsock(unix)<br>
08:01:56:<br>
08:01:56: Reading configuration file /etc/MailScanner/MailScanner.conf<br>
08:01:56: Reading configuration file /etc/MailScanner/conf.d/README<br>
08:01:56: Reading configuration file /etc/MailScanner/conf.d/UdeS.conf<br>
08:01:56: Read 1500 hostnames from the phishing whitelist<br>
08:01:56: Read 17028 hostnames from the phishing blacklists<br>
08:01:56:<br>
08:01:56: Checking version numbers...<br>
08:01:56: Version number in MailScanner.conf (5.0.7) is correct.<br>
08:01:56:<br>
08:01:56: Your envelope_sender_header in spamassassin.conf is correct.<br>
08:01:56:<br>
08:01:56: Checking for SpamAssassin errors (if you use it)...<br>
08:01:56: Using SpamAssassin results cache<br>
08:01:56: Connected to SpamAssassin cache database<br>
08:02:14: SpamAssassin reported no errors.<br>
08:02:14: Connected to Processing Attempts Database<br>
08:02:14: Created Processing Attempts Database successfully<br>
08:02:14: There is 1 message in the Processing Attempts Database<br>
08:02:14: Using locktype = posix<br>
08:02:14: MailScanner.conf says "Virus Scanners = clamd"<br>
08:02:14: Found these virus scanners installed: clamd<br>
08:02:14: ===========================================================================<br>
08:02:14: Filename Checks: Windows/DOS Executable (1 eicar.com)<br>
08:02:14: Other Checks: Found 1 problems<br>
08:02:14: Virus and Content Scanning: Starting<br>
08:02:14: Clamd::INFECTED:: Eicar-Test-Signature :: ./1/eicar.com<br>
08:02:14: Virus Scanning: Clamd found 1 infections<br>
08:02:14: Infected message 1 came from 10.1.1.1<br>
08:02:14: Virus Scanning: Found 1 viruses<br>
08:02:14: ===========================================================================<br>
08:02:14: Virus Scanner test reports:<br>
08:02:14: Clamd said "eicar.com was infected: Eicar-Test-Signature"<br>
08:02:14:<br>
08:02:14: If any of your virus scanners (clamd)<br>
08:02:14: are not listed there, you should check that they are installed correctly<br>
08:02:14: and that MailScanner is finding them correctly via its virus.scanners.conf.<br>
<br>
If you look at the timestamps between "Connected to SpamAssassin cache database" and "SpamAssassin reported no errors", you'll see a 18 seconds delay, which seems excessive. I've redone this many times and it never goes lower than 10 seconds.<br>
<br>
If I do a "MailScanner --debug-sa" I get the following delays:<br>
In Debugging mode, not forking...<br>
Trying to setlogsock(unix)<br>
08:18:36 Aug 24 08:18:36.710 [10096] dbg: logger: adding facilities: all ...<br>
08:18:37 Aug 24 08:18:37.643 [10096] dbg: rules: run_eval_tests - compiling eval code: 13, priority 0<br>
08:18:37 Aug 24 08:18:37.644 [10096] dbg: dns: entering helper-app run mode<br>
08:18:42 Aug 24 08:18:42.645 [10096] dbg: dns: leaving helper-app run mode ...<br>
08:18:42 Building a message batch to scan...<br>
08:19:36 Have a batch of 1 message.<br>
08:19:36 Stopping now as you are debugging me.<br>
<br>
I tried to look at the dns settings but couldn't figure out what might be off. I am not running a caching nameserver. My old MS servers are not either and do not show this delay.<br>
<br>
Thanks for you help.<br>
<br>
I'm running this version:<br>
[root@smtpi3 conf.d]# MailScanner -v<br>
Running on<br>
Linux smtpi3.usherbrooke.ca 3.10.0-862.11.6.el7.x86_64 #1 SMP Fri Aug 10 16:55:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux This is Red Hat Enterprise Linux Server release 7.5 (Maipo) This is Perl version 5.016003 (5.16.3)<br>
<br>
This is MailScanner version 5.0.7<br>
Module versions are:<br>
1.01    AnyDBM_File<br>
1.30    Archive::Zip<br>
0.29    bignum<br>
1.26    Carp<br>
2.061   Compress::Zlib<br>
1.119   Convert::BinHex<br>
0.18    Convert::TNEF<br>
2.145   Data::Dumper<br>
2.30    Date::Parse<br>
1.04    DirHandle<br>
1.11    Fcntl<br>
2.84    File::Basename<br>
2.23    File::Copy<br>
2.02    FileHandle<br>
2.09    File::Path<br>
0.2301  File::Temp<br>
0.92    Filesys::Df<br>
3.69    HTML::Entities<br>
3.71    HTML::Parser<br>
3.69    HTML::TokeParser<br>
1.16    IO::File<br>
1.15    IO::Pipe<br>
2.12    Mail::Header<br>
1.998   Math::BigInt<br>
0.2603  Math::BigRat<br>
3.13    MIME::Base64<br>
5.509   MIME::Decoder<br>
5.509   MIME::Decoder::UU<br>
5.509   MIME::Head<br>
5.509   MIME::Parser<br>
3.13    MIME::QuotedPrint<br>
5.509   MIME::Tools<br>
0.18    Net::CIDR<br>
1.26    Net::IP<br>
0.19    OLE::Storage_Lite<br>
1.04    Pod::Escapes<br>
3.28    Pod::Simple<br>
1.30    POSIX<br>
1.27    Scalar::Util<br>
2.010   Socket<br>
2.45    Storable<br>
1.5     Sys::Hostname::Long<br>
0.33    Sys::Syslog<br>
1.48    Test::Pod<br>
1.302140        Test::Simple<br>
1.9725  Time::HiRes<br>
1.02    Time::localtime<br>
<br>
Optional module versions are:<br>
1.92    Archive::Tar<br>
0.29    bignum<br>
2.06    Business::ISBN<br>
20120719.001    Business::ISBN::Data<br>
1.22    Data::Dump<br>
1.83    DB_File<br>
1.39    DBD::SQLite<br>
1.627   DBI<br>
1.17    Digest<br>
1.03    Digest::HMAC<br>
2.52    Digest::MD5<br>
2.13    Digest::SHA1<br>
1.01    Encode::Detect<br>
0.17020 Error<br>
0.280206        ExtUtils::CBuilder<br>
3.18    ExtUtils::ParseXS<br>
2.4     Getopt::Long<br>
0.53    Inline<br>
1.08    IO::String<br>
1.10    IO::Zlib<br>
2.28    IP::Country<br>
missing Mail::ClamAV<br>
3.004000        Mail::SpamAssassin<br>
v2.008  Mail::SPF<br>
1.999001        Mail::SPF::Query<br>
0.4005  Module::Build<br>
0.21    Net::CIDR::Lite<br>
0.72    Net::DNS<br>
v0.003  Net::DNS::Resolver::Programmable<br>
0.56    Net::LDAP<br>
 4.069  NetAddr::IP<br>
1.967009        Parse::RecDescent<br>
missing SAVI<br>
3.28    Test::Harness<br>
1.23    Test::Manifest<br>
2.02    Text::Balanced<br>
1.60    URI<br>
0.9907  version<br>
0.84    YAML<br>
<br>
Denis<br>
<br>
<br>
-- <br>
MailScanner mailing list<br>
mailscanner@lists.mailscanner.info<br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
<br>
<br>
-- <br>
MailScanner mailing list<br>
mailscanner@lists.mailscanner.info<br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>