The postfix/dovecot mailserver I’ve had running here for quite some time has suddenly started throwing up authentication errors due to dovecot conf files permissions, the server was upgraded from 11.3 64-bit to 11.4 64-bit a few months ago but this issue didn’t crop up until today. The last updates done on the server were about two weeks ago and that’s when it was last rebooted, so I don’t think the upgrade or any updates are the cause
I’m getting the errors on /etc/dovecot/dovecot.conf and /etc/dovecot/dovecot-sql.conf, here’s the info from /var/log/mail
dovecot: auth(default): Can't open configuration file /etc/dovecot/dovecot-sql.conf: Permission denied
Fatal: open(/etc/dovecot/dovecot.conf) failed: Permission denied )
This is what I get in response to running /etc/init.d/dovecot restart
Jul 10 18:38:28 godzooky dovecot: Dovecot v1.2.17 starting up (core dumps disabled)
Jul 10 18:38:28 godzooky dovecot: auth(default): Can't open configuration file /etc/dovecot/dovecot-sql.conf: Permission denied
Jul 10 18:38:28 godzooky dovecot: dovecot: child 4374 (auth) returned error 89 (Fatal failure)
Jul 10 18:38:28 godzooky dovecot: dovecot: Fatal: Auth process died too early - shutting down
Checked the permissions on the files and this was the state of them:
dovecot.conf root:vmail owner & group can read, write & execute
dovecot-sql.conf root:root owner & group can read, write and execute
I can’t remember the original permissions on the files but I think they were/should be owned by vmail:vmail with owner & group read & write privileges, don’t really understand why conf files should have execute permissions
I have tried resetting the permissions on both files as vmail:vmail root:vmail & root:root with & without the +x permission in all cases but I get the same errors every time so I’m at a bit of a loss as to what else I can try to fix this
Any suggestions as to what else I can try most appreciated
Btw, does anyone know whether root should be a member of the vmail group, can’t remember and root is not a member of vmail at present