Hi there,
Dovecat stopped working and it's unable to restart it.
Error message:
Jun 09 09:59:42 <servername> dovecot[13359]: doveconf: Fatal: Error in configuration file /etc/dovecot/ssl.conf line 12: ssl_cert: Can't open file /etc/dovecot/ssl/dovecot.crt: Permission denied
The file is a symlink to: /var/cpanel/ssl/dovecot/mydovecot.crt
And this file is there and readable (as root).
I think it's because Dovecat is not starting as root any more. As I understand, Dovecot starts as root, reloads the SSL-Cert & other services and then drops permission to the "internal service user".
I have also tried to chmod the ssl cs&key-file, so a non root can read it.
The it will pass the checks, but will stop here (the /var/run/dovecot is also only readable as a root):
Jun 09 15:09:34 <servername> dovecot[27796]: Error: service(auth): unlink(/var/run/dovecot/auth-userdb) failed: Permission denied
Jun 09 15:09:34 <servername> dovecot[27796]: Error: service(auth): unlink(/var/run/dovecot/auth-master) failed: Permission denied
Jun 09 15:09:34 <servername> dovecot[27796]: Error: service(auth-worker): unlink(/var/run/dovecot/auth-worker) failed: Permission denied
Jun 09 15:09:34 <servername> dovecot[27796]: Error: service(anvil): unlink(/var/run/dovecot/anvil) failed: Permission denied
Jun 09 15:09:34 <servername> dovecot[27796]: Error: service(anvil): unlink(/var/run/dovecot/anvil-auth-penalty) failed: Permission denied
Jun 09 15:09:34 <servername> dovecot[27796]: Error: service(quota-status): unlink(/var/run/dovecot/quota-status) failed: Permission denied
Jun 09 15:09:34 <servername> dovecot[27796]: Fatal: Failed to start listeners
Jun 09 15:09:34 <servername> systemd[1]: dovecot.service: main process exited, code=exited, status=89/n/a
Jun 09 15:09:34 <servername> systemd[1]: Unit dovecot.service entered failed state.
Jun 09 15:09:34 <servername> systemd[1]: dovecot.service failed.
So I really think it's because Dovecot is not starting as root anymore. How can I change this behaviour? It was working before.
I have another dovecat installation and the permissions and the config files are exactl the same...
OS: CentOS v7.9.2009 STANDARD standard
cPanel Version: 110.0.7
Thank you
Dovecat stopped working and it's unable to restart it.
Error message:
Jun 09 09:59:42 <servername> dovecot[13359]: doveconf: Fatal: Error in configuration file /etc/dovecot/ssl.conf line 12: ssl_cert: Can't open file /etc/dovecot/ssl/dovecot.crt: Permission denied
The file is a symlink to: /var/cpanel/ssl/dovecot/mydovecot.crt
And this file is there and readable (as root).
I think it's because Dovecat is not starting as root any more. As I understand, Dovecot starts as root, reloads the SSL-Cert & other services and then drops permission to the "internal service user".
I have also tried to chmod the ssl cs&key-file, so a non root can read it.
The it will pass the checks, but will stop here (the /var/run/dovecot is also only readable as a root):
Jun 09 15:09:34 <servername> dovecot[27796]: Error: service(auth): unlink(/var/run/dovecot/auth-userdb) failed: Permission denied
Jun 09 15:09:34 <servername> dovecot[27796]: Error: service(auth): unlink(/var/run/dovecot/auth-master) failed: Permission denied
Jun 09 15:09:34 <servername> dovecot[27796]: Error: service(auth-worker): unlink(/var/run/dovecot/auth-worker) failed: Permission denied
Jun 09 15:09:34 <servername> dovecot[27796]: Error: service(anvil): unlink(/var/run/dovecot/anvil) failed: Permission denied
Jun 09 15:09:34 <servername> dovecot[27796]: Error: service(anvil): unlink(/var/run/dovecot/anvil-auth-penalty) failed: Permission denied
Jun 09 15:09:34 <servername> dovecot[27796]: Error: service(quota-status): unlink(/var/run/dovecot/quota-status) failed: Permission denied
Jun 09 15:09:34 <servername> dovecot[27796]: Fatal: Failed to start listeners
Jun 09 15:09:34 <servername> systemd[1]: dovecot.service: main process exited, code=exited, status=89/n/a
Jun 09 15:09:34 <servername> systemd[1]: Unit dovecot.service entered failed state.
Jun 09 15:09:34 <servername> systemd[1]: dovecot.service failed.
So I really think it's because Dovecot is not starting as root anymore. How can I change this behaviour? It was working before.
I have another dovecat installation and the permissions and the config files are exactl the same...
OS: CentOS v7.9.2009 STANDARD standard
cPanel Version: 110.0.7
Thank you