1
1
Fork 0
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-06-02 23:36:05 +02:00

dovecot: Decouple the mailboxes from the system user

The homedir is now /home/vmail/%d/%n instead of /home/$USER.

Preparation for switching to a virtual user setup and removing all the
staff users from mail.a.o.
This commit is contained in:
Kristian Klausen 2021-07-09 01:33:19 +02:00
parent db2a1bf348
commit af46f2a5c8
2 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,12 @@
notify:
- reload dovecot
- name: add vmail group
group: name=vmail gid=5000
- name: add vmail user
user: name=vmail uid=5000 shell=/usr/bin/nologin group=vmail
- name: install PAM config
copy: src=pam.d.dovecot dest=/etc/pam.d/dovecot mode=0644 owner=root group=root

View File

@ -97,6 +97,8 @@ ssl_cipher_list = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDH
userdb {
driver = passwd
# https://doc.dovecot.org/configuration_manual/config_file/config_variables/
override_fields = uid=vmail gid=vmail home=/home/vmail/%d/%n
}
protocol imap {
imap_client_workarounds = tb-extra-mailbox-sep