SYSTEM INFORMATION | |
---|---|
OS type and version | Debian 11 |
Webmin version | 2.021 |
Virtualmin version | 7.7 |
Related packages | Dovecot, php-fpm |
Just found a bug when deleting two accounts from my server, not sure where else should one report bugs so I’m posting them here. Some data is not being removed causing Dovecot and PHP-FPM to crash, the compromised files are the following:
/etc/dovecot/dovecot.conf
Here the entries for the ssl keys regarding the deleted accounts needs to be removed
Example:
local_name example.com {
ssl_cert = </etc/ssl/virtualmin/161234567890123/ssl.combined
ssl_key = </etc/ssl/virtualmin/161234567890123/ssl.key
}
/etc/php/VERSION-NUMBER/fpm/pool.d/ID-NUMBER.conf
Example:
/etc/php/8.2/fpm/pool.d/161234567890123.conf
This file needs to be removed from the system after the account is deleted in all php versions since there’s no use in keeping it and it causes the daemon to crash.
Some other files are being left behind too in the following folders:
/etc/letsencrypt/archive/
/etc/letsencrypt/renewal/
/etc/letsencrypt/live/
/var/lib/bind/
/var/mail/
/var/lib/sudo/
Not causing trouble though, but still trash shouldn’t be left lying around (also these might be from changing an account’s domain)
Hope this helps someone