Files
modoboa-installer/modoboa_installer/scripts
softwarecreations 9d24f17632 Fixed permissions of /etc/dovecot/conf.d/10-ssl-keys.try to resolve issue 2570
Resolves modoboa/modoboa#2570

When dovecot first starts up, root reads the conf and is able to read and load the keys in /etc/dovecot/conf.d/10-ssl-keys.try Inside that file, it can read the private key (that only root has permissions to read)

However when we try delete a user, doveconf tries to read the config (to find the user's mailbox) doveconf MUST fail to open 10-ssl-keys.try, which is fine, because 10-ssl.conf says

!include_try /etc/dovecot/conf.d/10-ssl-keys.try

So if doveconf can't open 10-ssl-keys.try it will will keep going. However if doveconf can read 10-ssl-keys.try then doveconf crashes saying something like:

Failed to retrieve mailbox location (b doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl-keys.try line 11: ssl_key: Can't open file /etc/ssl/example.com/privkey.pem: Permission denied

And then the attempt to delete the user's mailbox fails.

According to @gsloop, "the API calls doveadm to return the directory that holds the users mailbox"

I did a new installation, the file /etc/dovecot/conf.d/10-ssl-keys.try was already owned by root:root but it had 644 permissions. So the line that I added corrects that.
2023-03-10 13:03:43 +02:00
..
2023-01-31 09:08:34 +01:00
2022-11-09 10:30:44 +01:00
2022-11-09 10:30:44 +01:00
2023-03-05 09:27:40 +01:00
2022-11-03 12:27:04 +01:00
2022-11-09 10:30:44 +01:00
2023-01-13 12:12:48 +01:00
2023-01-31 09:08:34 +01:00
2023-02-17 10:12:56 +01:00
2022-07-26 16:53:24 +02:00
2022-12-27 20:27:28 +01:00
2022-11-09 10:30:44 +01:00
PEP
2022-12-27 19:56:12 +01:00
2022-11-09 10:30:44 +01:00
2017-01-18 18:43:43 +01:00
2022-11-03 12:27:04 +01:00
2019-12-06 12:18:01 +01:00