On 1. Apr 2026, at 13.17, Timo Sirainen via dovecot <dovecot@dovecot.org> wrote:
On 1. Apr 2026, at 12.57, Stefan G. Weichinger via dovecot <dovecot@dovecot.org> wrote:
ls -l /home/vmail/xunil.at/logs@xunil.at/ total 944 drwx------ 2 vmail vmail 622592 Apr 1 11:43 cur -rw------- 1 vmail vmail 0 Jul 30 2021 dovecot-acl-list -rw------- 1 vmail vmail 3304 Apr 1 11:35 dovecot.index -rw------- 1 vmail vmail 202444 Apr 1 11:43 dovecot.index.cache -rw------- 1 vmail vmail 2908 Apr 1 11:43 dovecot.index.log -rw------- 1 vmail vmail 32892 Apr 1 11:35 dovecot.index.log.2 -rw------- 1 vmail vmail 91 Feb 9 2024 dovecot-keywords -rw------- 1 root root 5744 Apr 1 10:30 dovecot.list.index -rw------- 1 root root 480 Apr 1 10:52 dovecot.list.index.log
[..]
Why do these 2 files get owned by root now ... ?
That's very strange. It's not even supposed to be possible to configure Dovecot in a way that it writes to these files as root. If you look at your logs, can you see what process wrote these files at the time? imap, lmtp? Also what's your full doveconf -n output?
Looking at your earlier mail, I see there is quota-status service, which apparently can run as root in some situations. So it's possibly somehow related to that, although I'm still not sure how that can happen.
Also does the problem go away if you simplify your config to:
mail_uid = 1001 mail_gid = 1001
passdb_sql_query = SELECT username as user, password FROM mailbox WHERE username = '%{user}' AND active = '1' userdb_sql_query = SELECT username as user FROM mailbox WHERE username = '%{user}' AND active = '1'