Topic: clamav wouldn't start
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: ubuntu 18.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- 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.
====
My experience with running iRedMail is Less than a year. I ran 0.9.7 until yesterday and broke it trying to upgrade to 0.9.8.
Has anyone else had this issue: I made a fresh install on a newly deployed vps. I got everything running and tailed the logs and was seeing bad behavior in the mail.log concerning clamav. It dovecot couldn't connect to it. So I checked the status and got this:
root@mail:/var/log# 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: exit-code) since Fri 2018-06-08 22:26:22 UTC; 2h 46min ago
Docs: man:clamd(8)
man:clamd.conf(5)
http://www.clamav.net/lang/en/doc/
Process: 679 ExecStart=/usr/sbin/clamd --foreground=true (code=exited, status=1/FAILURE)
Process: 666 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS)
Process: 635 ExecStartPre=/bin/mkdir /run/clamav (code=exited, status=0/SUCCESS)
Main PID: 679 (code=exited, status=1/FAILURE)
Jun 08 22:26:21 mail systemd[1]: Starting Clam AntiVirus userspace daemon...
Jun 08 22:26:22 mail systemd[1]: Started Clam AntiVirus userspace daemon.
Jun 08 22:26:22 mail clamd[679]: ERROR: Parse error at line 90: Unknown option AllowSupplementaryGroups
Jun 08 22:26:22 mail clamd[679]: ERROR: Can't open/parse the config file /etc/clamav/clamd.conf
Jun 08 22:26:22 mail systemd[1]: clamav-daemon.service: Main process exited, code=exited, status=1/FAILURE
Jun 08 22:26:22 mail systemd[1]: clamav-daemon.service: Failed with result 'exit-code'.
I went in and commented out line 90 of /etc/clamav/clamd.conf:
# AllowSupplementaryGroups true
I ran service clamav-daemon start and it started up.
So my question is there a syntax error or is AllowSupplementaryGroups a bad parameter? (is it a bug?)
Thanks for making iRedMail available for use.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.