MailScanner takes a very long time to initialize

Rick Wezenaar via MailScanner <mailscanner-qhrM8SXbD5JTOyd/[email protected]> Thu, 29 Aug 2024 11:54:45 +0200
Newsgroups gmane.mail.virus.mailscanner
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============4154161209987997538==
Content-Type: multipart/alternative;
 boundary="------------uE8FBaXdlT0Rt0wGE0UrdB4K"
Content-Language: en-GB

This is a multi-part message in MIME format.
--------------uE8FBaXdlT0Rt0wGE0UrdB4K
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

L.S.,

Whenever I start MailScanner it takes a very long time to initialize. I 
can see it does some initial checks, like a lintlite and ms-peek to all 
work directories, but that takes a very long time, on average 8 minutes:

$> time systemctl start mailscanner
systemctl start mailscanner  0.01s user 0.02s system 0% cpu 8:47.38 total

In my humble opinion, this is not normal. Can anyone help ?

Here's some extra info:

$> MailScanner --lint
Trying to setlogsock(unix)

Reading configuration file /etc/MailScanner/MailScanner.conf
Reading configuration file /etc/MailScanner/conf.d/README
Reading configuration file /etc/MailScanner/conf.d/my-settings.conf
Configuration: Seen configuration file /etc/MailScanner/conf.d/README 
before, skipping. at /usr/share/MailScanner/perl/MailScanner/Config.pm 
line 2024.
Configuration: Seen configuration file 
/etc/MailScanner/conf.d/my-settings.conf before, skipping. at 
/usr/share/MailScanner/perl/MailScanner/Config.pm line 2024.
Read 1494 hostnames from the phishing whitelist
Read 53430 hostnames from the phishing blacklists

Checking version numbers...
Version number in MailScanner.conf (5.5.1) is correct.

Your envelope_sender_header in spamassassin.conf is correct.

Checking for SpamAssassin errors (if you use it)...
Using SpamAssassin results cache
Connected to SpamAssassin cache database
deprecated method; size() is an alias of "UDPsize()" at 
/usr/local/share/perl5/5.32/Mail/SpamAssassin/DnsResolver.pm line 600.
SpamAssassin reported no errors.
Connected to Processing Attempts Database
Created Processing Attempts Database successfully
There are 0 messages in the Processing Attempts Database
Using locktype = posix
MailScanner.conf says "Virus Scanners = clamd"
Found these virus scanners installed: clamd
===========================================================================
Filename Checks: Windows/DOS Executable (1 eicar.com)
Other Checks: Found 1 problems
Virus and Content Scanning: Starting
Clamd::INFECTED:: Eicar-Test-Signature :: ./1/eicar.com
Virus Scanning: Clamd found 2 infections
Infected message 1 came from 10.1.1.1
Virus Scanning: Found 2 viruses
===========================================================================
Virus Scanner test reports:
Clamd said "eicar.com was infected: Eicar-Test-Signature"

If any of your virus scanners (clamd)
are not listed there, you should check that they are installed correctly
and that MailScanner is finding them correctly via its virus.scanners.conf.

System:

OS: Red Hat Enterprise Linux 9.4 (Plow) x86_64
Host: CloudStack KVM Hypervisor pc-i440fx-2.5
Kernel: 5.14.0-427.33.1.el9_4.x86_64
CPU: Intel Xeon E312xx (Sandy Bridge) (8) @ 2.199GHz
Memory: 3821MiB / 7684MiB

If you need more information, pls let me know.

Cheers,

Rick
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--------------uE8FBaXdlT0Rt0wGE0UrdB4K
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    L.S.,<br>
    <br>
    Whenever I start MailScanner it takes a very long time to
    initialize. I can see it does some initial checks, like a lintlite
    and ms-peek to all work directories, but that takes a very long
    time, on average 8 minutes:<br>
    <br>
    <font face="Courier New, Courier, monospace">$&gt; time systemctl
      start
mailscanner                                                               
      <br>
      systemctl start mailscanner  0.01s user 0.02s system 0% cpu
      8:47.38 total</font><br>
    <br>
    In my humble opinion, this is not normal. Can anyone help ?<br>
    <br>
    Here's some extra info:<br>
    <br>
    <font face="Courier New, Courier, monospace">$&gt; MailScanner
--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>
      Reading configuration file
      /etc/MailScanner/conf.d/my-settings.conf<br>
      Configuration: Seen configuration file
      /etc/MailScanner/conf.d/README before, skipping. at
      /usr/share/MailScanner/perl/MailScanner/Config.pm line 2024.<br>
      Configuration: Seen configuration file
      /etc/MailScanner/conf.d/my-settings.conf before, skipping. at
      /usr/share/MailScanner/perl/MailScanner/Config.pm line 2024.<br>
      Read 1494 hostnames from the phishing whitelist<br>
      Read 53430 hostnames from the phishing blacklists<br>
      <br>
      Checking version numbers...<br>
      Version number in MailScanner.conf (5.5.1) is correct.<br>
      <br>
      Your envelope_sender_header in spamassassin.conf is correct.<br>
      <br>
      Checking for SpamAssassin errors (if you use it)...<br>
      Using SpamAssassin results cache<br>
      Connected to SpamAssassin cache database<br>
      deprecated method; size() is an alias of "UDPsize()" at
      /usr/local/share/perl5/5.32/Mail/SpamAssassin/DnsResolver.pm line
      600.<br>
      SpamAssassin reported no errors.<br>
      Connected to Processing Attempts Database<br>
      Created Processing Attempts Database successfully<br>
      There are 0 messages in the Processing Attempts Database<br>
      Using locktype = posix<br>
      MailScanner.conf says "Virus Scanners = clamd"<br>
      Found these virus scanners installed: clamd<br>
===========================================================================<br>
      Filename Checks: Windows/DOS Executable (1 eicar.com)<br>
      Other Checks: Found 1 problems<br>
      Virus and Content Scanning: Starting<br>
      Clamd::INFECTED:: Eicar-Test-Signature :: ./1/eicar.com<br>
      Virus Scanning: Clamd found 2 infections<br>
      Infected message 1 came from 10.1.1.1<br>
      Virus Scanning: Found 2 viruses<br>
===========================================================================<br>
      Virus Scanner test reports:<br>
      Clamd said "eicar.com was infected: Eicar-Test-Signature"<br>
      <br>
      If any of your virus scanners (clamd)<br>
      are not listed there, you should check that they are installed
      correctly<br>
      and that MailScanner is finding them correctly via its
      virus.scanners.conf.</font><br>
    <br>
    System:<br>
    <br>
    OS: Red Hat Enterprise Linux 9.4 (Plow) x86_64<br>
    Host: CloudStack KVM Hypervisor pc-i440fx-2.5<br>
    Kernel: 5.14.0-427.33.1.el9_4.x86_64<br>
    CPU: Intel Xeon E312xx (Sandy Bridge) (8) @ 2.199GHz<br>
    Memory: 3821MiB / 7684MiB<br>
    <br>
    If you need more information, pls let me know.<br>
    <br>
    Cheers,<br>
    <br>
    Rick<br>
  <br />-- 
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.
</body>
</html>

--------------uE8FBaXdlT0Rt0wGE0UrdB4K--

--===============4154161209987997538==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline



-- 
MailScanner mailing list
mailscanner-qhrM8SXbD5JTOyd/[email protected]
http://lists.mailscanner.info/mailman/listinfo/mailscanner


--===============4154161209987997538==--