Why would "doveadm mailbox" check certificate file access?
3 Jun
2025
3 Jun
'25
2:44 p.m.
The following came as a nasty surprise while testing Dovecot 2.4.1-4:
alice@host $ doveadm mailbox list -u $(whoami) doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 61: cert_file: open(/path/to/cert.pem) failed: Permission denied
Unprivileged user Alice does not have access to cert.pem, nor does she need it. Calling "doveadm flags ..." causes the same error. I suspect other subcommands are affected as well, but did not test it.
The technical reason might be that dovecot.conf is parsed for each doveadm invocation? In any case, the certificate access check for subcommands like "flags" or "mailbox" seems like a bug to me.
-Ralph
2
Age (days ago)
2
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ralph Seichter