OK, I found it. I changed the "DIR_MODE" directive in file
/etc/adduser.conf from 0755 to 02770 and "USERGROUPS" directive from
"yes" to "no". Now all new users belong to the same group and their home
directories have 2770 permissions, which Maildir inherits. Since their
shell is
Dovecot will copy the mail root permissions when creating directories &
folders.
Aki
On 12.04.2018 22:45, Rubén Fernández Asensio wrote:
>
> Hello all,
>
> I'm setting up an IMAP server with dovecot. I've set up system users
> with PAM authentication and Maildir maiboxes.
>
> I'd like to share