Topic: Installation wipes debian-sys-maint user
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Deployed with iRedMail Easy or the downloadable installer? Downloadable
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Not related
- Manage mail accounts with iRedAdmin-Pro? Not related
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
It seems that when installing the server, the mysql database would be completely wiped including existing users, thus debian-sys-maint user would gone with it. However, various package-provided scripts like init.d and logrotate scripts rely on this account through mysqladmin tool.
For example, "/etc/init.d/mysql reload" actually calls "mysqladmin reload" and /etc/logrotate.d/mysql-server needs to flush the logs by calling "mysqladmin flush-error-log ..." through debian-sys-maint user.
Server admins would need to manually recreate this user to make sure those scripts still works reliably.
You should consider preserving this account when installing iRedMail server using mysql / mariadb backend on debian and ubuntu servers. Related credentials resides in /etc/mysql/debian.cnf by default and only readable by root, so you should be able to use it.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.