1

Topic: Ubuntu 18.04 ClamAV

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9 OPENLDAP edition
- Deployed with iRedMail Easy or the downloadable installer? No
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? YES
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Aug 29 17:10:08 mail postfix/cleanup[4269]: 4Bf8Hg5w2vz7vkB: message-id=<>
Aug 29 17:10:08 mail postfix/qmgr[2039]: 4Bf8Hg5w2vz7vkB: from=<support@kisow.org>, size=441, nrcpt=1 (queue active)
Aug 29 17:10:08 mail amavis[14105]: (14105-03) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 108) line 173.
Aug 29 17:10:08 mail postfix/submission/smtpd[4266]: disconnect from unknown[24.239.192.41] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Aug 29 17:10:08 mail amavis[14105]: (14105-03) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: Connection refused
Aug 29 17:10:09 mail amavis[14105]: (14105-03) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: Connection refused
Aug 29 17:10:09 mail amavis[14105]: (14105-03) (!)clamav-socket: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
Aug 29 17:10:15 mail amavis[14105]: (14105-03) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: Connection refused
Aug 29 17:10:15 mail amavis[14105]: (14105-03) (!)clamav-socket av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (All attempts (1) failed connecting to /var/run/clamav/clamd.ctl) at (eval 113) line 659.\n
Aug 29 17:10:15 mail amavis[14105]: (14105-03) (!)WARN: all primary virus scanners failed, considering backups

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Ubuntu 18.04 ClamAV

# service clamav-daemon status
● clamav-daemon.service - Clam AntiVirus userspace daemon
   Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/clamav-daemon.service.d
           └─extend.conf
   Active: failed (Result: signal) since Sun 2020-08-30 10:25:15 EDT; 10h ago
     Docs: man:clamd(8)
           man:clamd.conf(5)
           https://www.clamav.net/documents/
  Process: 4864 ExecStart=/usr/sbin/clamd --foreground=true (code=killed, signal=KILL)
  Process: 4855 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS)
  Process: 4854 ExecStartPre=/bin/mkdir /run/clamav (code=exited, status=1/FAILURE)
Main PID: 4864 (code=killed, signal=KILL)

Aug 30 03:30:03 mail clamd[4864]: Sun Aug 30 03:30:03 2020 -> SelfCheck: Database status OK.
Aug 30 05:01:02 mail clamd[4864]: Sun Aug 30 05:01:02 2020 -> SelfCheck: Database status OK.
Aug 30 06:01:02 mail clamd[4864]: Sun Aug 30 06:01:02 2020 -> SelfCheck: Database status OK.
Aug 30 06:25:05 mail clamd[4864]: Sun Aug 30 06:25:05 2020 -> SIGHUP caught: re-opening log file.
Aug 30 07:25:05 mail clamd[4864]: Sun Aug 30 07:25:05 2020 -> SelfCheck: Database status OK.
Aug 30 08:25:05 mail clamd[4864]: Sun Aug 30 08:25:05 2020 -> SelfCheck: Database status OK.
Aug 30 09:25:05 mail clamd[4864]: Sun Aug 30 09:25:05 2020 -> SelfCheck: Database status OK.
Aug 30 10:25:05 mail clamd[4864]: Sun Aug 30 10:25:05 2020 -> SelfCheck: Database status OK.
Aug 30 10:25:15 mail systemd[1]: clamav-daemon.service: Main process exited, code=killed, status=9/KILL
Aug 30 10:25:15 mail systemd[1]: clamav-daemon.service: Failed with result 'signal'.

3

Re: Ubuntu 18.04 ClamAV

# free -h
              total        used        free      shared  buff/cache   available
Mem:           1.9G        512M        917M        2.9M        563M        1.3G
Swap:          511M        497M         14M

4

Re: Ubuntu 18.04 ClamAV

2GB RAM is not enough, please increase to at least 4GB.