1 (edited by kiwichrish 2018-06-06 09:42:35)

Topic: DB error on deleting domain + ClamAV issue on clean build.

======== Required information ====
- iRedMail version (check /etc/iredmail-release):      v0.9.8
- Linux/BSD distribution name and version:  Ubuntu 18.04
- 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.
====

Hi-ho,

Just a bug/issue report, system is working fine..

On a brand-new install of iRedMail to test some other stuffon ubuntu 18.04, I noticed:

clamav-daemon does not start with config as installed.  per:

root@pat:~# service clamav-daemon start
root@pat:~# 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 Wed 2018-06-06 13:34:26 NZST; 9s ago
     Docs: man:clamd(8)
           man:clamd.conf(5)
           http://www.clamav.net/lang/en/doc/
  Process: 23787 ExecStart=/usr/sbin/clamd --foreground=true (code=exited, status=1/FAILURE)
  Process: 23786 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS)
  Process: 23785 ExecStartPre=/bin/mkdir /run/clamav (code=exited, status=1/FAILURE)
Main PID: 23787 (code=exited, status=1/FAILURE)

Jun 06 13:34:26 pat systemd[1]: Starting Clam AntiVirus userspace daemon...
Jun 06 13:34:26 pat mkdir[23785]: /bin/mkdir: cannot create directory '/run/clamav': File exists
Jun 06 13:34:26 pat systemd[1]: Started Clam AntiVirus userspace daemon.
Jun 06 13:34:26 pat clamd[23787]: ERROR: Parse error at line 90: Unknown option AllowSupplementaryGroups
Jun 06 13:34:26 pat clamd[23787]: ERROR: Can't open/parse the config file /etc/clamav/clamd.conf
Jun 06 13:34:26 pat systemd[1]: clamav-daemon.service: Main process exited, code=exited, status=1/FAILURE
Jun 06 13:34:26 pat systemd[1]: clamav-daemon.service: Failed with result 'exit-code'.
root@pat:~#

Line 90 of clamd.conf is "AllowSupplementaryGroups true"

Commenting that line out fixes it.

Also, when deleting a domain you get the following error in iRedMail web UI:

  Error: (1146, "Table 'vmail.alias_moderators' doesn't exist")

Guessing the alias_moderators table is a pro feature?

Aside from the error the domain is remove cleanly as far as I can see...

Keep up the good work, Given the number of moving parts in a mail server iRedMail is a great solution.

Cheers, Chris H.

----

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

2

Re: DB error on deleting domain + ClamAV issue on clean build.

Fixed moment ago:
https://bitbucket.org/zhb/iredadmin-ose … eb02d2ab61

3

Re: DB error on deleting domain + ClamAV issue on clean build.

ZhangHuangbin wrote:

Fixed moment ago:
https://bitbucket.org/zhb/iredadmin-ose … eb02d2ab61

Cheers Zhang..