> On 09/06/2025 11:13 EEST "Tóth Attila" via dovecot <dovecot@dovecot.org> > wrote: > > > 1. I have a disturbing uid/gid issue: up until dovecot-2.3, dovecot > changed its uid/gid to the user it is delivering the mail for. I'm the > first user on the system with uid 1000 and the users gid is 100. Therefore > I kept first_valid_uid = 1000 and first_valid_gid = 100. Now that I've > upgraded to dovecot-2.4, it immediately started to complain about unable > to change uid/gid, because it tries to write in user's directory as > mail:mail. Mail directories and files in it are accessible only by the > owner, not even by the group. So even after lowering first_valid_uid/gid, > the operation fails. > > Are there any configuration options to restore dovecot-2.3 behavior to > change uid:gid to the actual user > > Jun 8 21:40:52 server dovecot: imap(user)<48978><1LgipBQ3LO1/AAAB>: > Error: mkdir(/home/user/mail/.imap) failed: Permission denied > (euid=8(mail) egid=12(mail) missing +x perm: /home/user/mail, dir owned by > 1000:100 mode=0700) > Jun 8 21:40:52 server dovecot: imap(user)<48978><1LgipBQ3LO1/AAAB>: > Error: mkdir(/home/user/mail/.imap) failed: Permission denied > (euid=8(mail) egid=12(mail) missing +x perm: /home/user/mail, dir owned by > 1000:100 mode=0700) > > 2. I know, that mbox is deprecated as of dovecot-2.4 - or that it has been > long superseded by more modern formats, but I have a setup for 20+ years > (without any problems and less files) and before I would convert it to > Maildir, I'd rather provide a transition period and keep using mbox for a > little while. > > During dovecot-2.3 times this was my mail_location setting: > mail_location = mbox:~/mail/:INBOX=/var/spool/mail/%u > Mails get delivered into /var/spool/mail/user and when dovecot reads them, > they get copied under /home/user/mail. > > Now for dovecot-2.4 I'm forced to came up with this: > mail_driver = mbox > mail_path = /home/%{user}/mail > mail_inbox_path = /var/spool/mail/%{user} > #mail_home > > Are there anyone else with a setup like this struggling with dovecot-2.4? > > Thanks: > Dw. > -- > dr Tóth Attila, Radiológus, 06-20-825-8057 > Attila Toth MD, Radiologist, +36-20-825-8057
Sounds like something is setting mail_uid / mail_gid (or these are returned by your passdb/userdb) and they don't match your expectations. Try `doveadm user` command to see if this is the case. Aki _______________________________________________ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org