1 (edited by ale_punta 2018-05-31 01:46:03)

Topic: clamav-daemon not starting

============ Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.8 OPENLDAP edition.
- Linux/BSD distribution name and version: Debian 9.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): OpenLDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I check the clamav-daemon status and shows me this error:

● 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: exit-code) since Wed 2018-05-30 11:28:45 CEST; 4min 40s ago
     Docs: man:clamd(8)
           man:clamd.conf(5)
           http://www.clamav.net/lang/en/doc/
  Process: 460 ExecStart=/usr/sbin/clamd --foreground=true (code=exited, status=1/FAILURE)
  Process: 412 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS)
  Process: 403 ExecStartPre=/bin/mkdir /run/clamav (code=exited, status=0/SUCCESS)
 Main PID: 460 (code=exited, status=1/FAILURE)

may 30 11:28:37 debian systemd[1]: Starting Clam AntiVirus userspace daemon...
may 30 11:28:38 debian systemd[1]: Started Clam AntiVirus userspace daemon.
may 30 11:28:44 debian clamd[460]: ERROR: Parse error at line 90: Unknown option AllowSupplementaryGroups
may 30 11:28:44 debian clamd[460]: ERROR: Can't open/parse the config file /etc/clamav/clamd.conf
may 30 11:28:44 debian systemd[1]: clamav-daemon.service: Main process exited, code=exited, status=1/FAILURE
may 30 11:28:45 debian systemd[1]: clamav-daemon.service: Unit entered failed state.
may 30 11:28:45 debian systemd[1]: clamav-daemon.service: Failed with result 'exit-code'.
root@debian:/home/usuario#

The config  file /etc/clamav/clamd.conf exists:

root@debian:~# ll /etc/clamav
total 28
-rw-r--r-- 1 root   root 2060 may 11 13:26 clamd.conf

In /var/log/mail.log i see this:

May 30 11:28:54 debian amavis[520]: starting. /usr/sbin/amavisd-new at debian.domain.com amavisd-new-2.10.1 (20141025), Unicode aware, LC_ALL="C", LANG="es_ES.UTF-8"
May 30 11:28:54 debian postfix/postfix-script[1868]: starting the Postfix mail system
May 30 11:28:54 debian postfix/master[1874]: daemon started -- version 3.1.8, configuration /etc/postfix
May 30 11:28:54 debian amavis[1900]: Net::Server: Group Not Defined.  Defaulting to EGID '120 120'
May 30 11:28:54 debian amavis[1900]: Net::Server: User Not Defined.  Defaulting to EUID '114'
May 30 11:28:54 debian amavis[1900]: Module Amavis::Conf        2.404
May 30 11:28:54 debian amavis[1900]: Module Archive::Zip        1.59
May 30 11:28:54 debian amavis[1900]: Module Compress::Raw::Zlib 2.069
May 30 11:28:54 debian amavis[1900]: Module Compress::Zlib      2.069001
May 30 11:28:54 debian amavis[1900]: Module Crypt::OpenSSL::RSA 0.28
May 30 11:28:54 debian amavis[1900]: Module DBD::mysql          4.041
May 30 11:28:54 debian amavis[1900]: Module DBI                 1.636
May 30 11:28:54 debian amavis[1900]: Module Digest::MD5         2.54
May 30 11:28:54 debian amavis[1900]: Module Digest::SHA         5.95_01
May 30 11:28:54 debian amavis[1900]: Module Encode              2.80_01
May 30 11:28:54 debian amavis[1900]: Module File::Temp          0.2304
May 30 11:28:54 debian amavis[1900]: Module IO::Socket::INET6   2.72
May 30 11:28:54 debian amavis[1900]: Module IO::Socket::IP      0.37
May 30 11:28:54 debian amavis[1900]: Module MIME::Entity        5.508
May 30 11:28:54 debian amavis[1900]: Module MIME::Parser        5.508
May 30 11:28:54 debian amavis[1900]: Module MIME::Tools         5.508
May 30 11:28:54 debian amavis[1900]: Module Mail::DKIM::Signer  0.4
May 30 11:28:54 debian amavis[1900]: Module Mail::DKIM::Verifier 0.4
May 30 11:28:54 debian amavis[1900]: Module Mail::Header        2.18
May 30 11:28:54 debian amavis[1900]: Module Mail::Internet      2.18
May 30 11:28:54 debian amavis[1900]: Module Net::DNS            1.07
May 30 11:28:54 debian amavis[1900]: Module Net::LibIDN         0.12
May 30 11:28:54 debian amavis[1900]: Module Net::Patricia       1.22
May 30 11:28:54 debian amavis[1900]: Module Net::Server         2.008
May 30 11:28:54 debian amavis[1900]: Module Scalar::Util        1.4202
May 30 11:28:54 debian amavis[1900]: Module Socket              2.020_03
May 30 11:28:54 debian amavis[1900]: Module Socket6             0.27
May 30 11:28:54 debian amavis[1900]: Module Time::HiRes         1.9733
May 30 11:28:54 debian amavis[1900]: Module Unix::Syslog        1.1
May 30 11:28:54 debian amavis[1900]: Amavis::ZMQ code     NOT loaded
May 30 11:28:54 debian amavis[1900]: Amavis::DB code      NOT loaded
May 30 11:28:54 debian amavis[1900]: SQL base code        loaded
May 30 11:28:54 debian amavis[1900]: SQL::Log code        loaded
May 30 11:28:54 debian amavis[1900]: SQL::Quarantine      loaded
May 30 11:28:54 debian amavis[1900]: Lookup::SQL code     loaded
May 30 11:28:54 debian amavis[1900]: Lookup::LDAP code    NOT loaded
May 30 11:28:54 debian amavis[1900]: AM.PDP-in proto code loaded
May 30 11:28:54 debian amavis[1900]: SMTP-in proto code   loaded
May 30 11:28:54 debian amavis[1900]: Courier proto code   NOT loaded
May 30 11:28:54 debian amavis[1900]: SMTP-out proto code  loaded
May 30 11:28:54 debian amavis[1900]: Pipe-out proto code  NOT loaded
May 30 11:28:54 debian amavis[1900]: BSMTP-out proto code NOT loaded
May 30 11:28:54 debian amavis[1900]: Local-out proto code NOT loaded
May 30 11:28:54 debian amavis[1900]: OS_Fingerprint code  NOT loaded
May 30 11:28:54 debian amavis[1900]: ANTI-VIRUS code      NOT loaded
May 30 11:28:54 debian amavis[1900]: ANTI-SPAM code       NOT loaded
May 30 11:28:54 debian amavis[1900]: ANTI-SPAM-EXT code   NOT loaded
May 30 11:28:54 debian amavis[1900]: ANTI-SPAM-C code     NOT loaded
May 30 11:28:54 debian amavis[1900]: ANTI-SPAM-SA code    NOT loaded
May 30 11:28:54 debian amavis[1900]: Unpackers code       loaded
May 30 11:28:54 debian amavis[1900]: DKIM code            loaded
May 30 11:28:54 debian amavis[1900]: Tools code           NOT loaded
May 30 11:28:54 debian amavis[1900]: Found $file            at /usr/bin/file
May 30 11:28:54 debian amavis[1900]: Found $altermime       at /usr/bin/altermime
May 30 11:28:54 debian amavis[1900]: Internal decoder for .mail
May 30 11:28:54 debian amavis[1900]: No ext program for   .F, tried: unfreeze, freeze -d, melt, fcat
May 30 11:28:54 debian amavis[1900]: Found decoder for    .Z    at /bin/uncompress
May 30 11:28:54 debian amavis[1900]: Found decoder for    .gz   at /bin/gzip -d
May 30 11:28:54 debian amavis[1900]: Found decoder for    .bz2  at /bin/bzip2 -d
May 30 11:28:54 debian amavis[1900]: Found decoder for    .xz   at /usr/bin/xz -dc
May 30 11:28:54 debian amavis[1900]: Found decoder for    .lzma at /usr/bin/xz -dc --format=lzma
May 30 11:28:54 debian amavis[1900]: Found decoder for    .lrz  at /usr/bin/lrzip -q -k -d -o -
May 30 11:28:54 debian amavis[1900]: Found decoder for    .lzo  at /usr/bin/lzop -d
May 30 11:28:54 debian amavis[1900]: Found decoder for    .lz4  at /usr/bin/lz4c -d
May 30 11:28:54 debian amavis[1900]: Found decoder for    .rpm  at /usr/bin/rpm2cpio
May 30 11:28:54 debian amavis[1900]: Found decoder for    .cpio at /bin/pax
May 30 11:28:54 debian amavis[1900]: Found decoder for    .tar  at /bin/pax
May 30 11:28:54 debian amavis[1900]: Found decoder for    .deb  at /usr/bin/ar
May 30 11:28:54 debian amavis[1900]: Found decoder for    .rar  at /usr/bin/unrar
May 30 11:28:54 debian amavis[1900]: Found decoder for    .arj  at /usr/bin/arj
May 30 11:28:54 debian amavis[1900]: Found decoder for    .arc  at /usr/bin/nomarch
May 30 11:28:54 debian amavis[1900]: No ext program for   .zoo, tried: zoo, unzoo
May 30 11:28:54 debian amavis[1900]: Found decoder for    .cab  at /usr/bin/cabextract
May 30 11:28:54 debian amavis[1900]: Internal decoder for .tnef
May 30 11:28:54 debian amavis[1900]: Found decoder for    .zip  at /usr/bin/7za
May 30 11:28:54 debian amavis[1900]: Found decoder for    .kmz  at /usr/bin/7za
May 30 11:28:54 debian amavis[1900]: Found decoder for    .7z   at /usr/bin/7zr
May 30 11:28:54 debian amavis[1900]: Found decoder for    .jar  at /usr/bin/7z
May 30 11:28:55 debian amavis[1900]: Found decoder for    .swf  at /usr/bin/7z
May 30 11:28:55 debian amavis[1900]: Found decoder for    .lha  at /usr/bin/7z
May 30 11:28:55 debian amavis[1900]: Found decoder for    .iso  at /usr/bin/7z
May 30 11:28:55 debian amavis[1900]: Found decoder for    .exe  at /usr/bin/unrar; /usr/bin/arj
May 30 11:28:55 debian amavis[1900]: No decoder for       .F
May 30 11:28:55 debian amavis[1900]: No decoder for       .zoo

What can i do?

I dont touch nothing for the clamav configuration...

Thank you very much

----

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

2

Re: clamav-daemon not starting

Please comment out or remove line "AllowSupplementaryGroups" in /etc/clamav/clamd.conf, then restart it.