Commit af46f2a5 authored by Kristian Klausen's avatar Kristian Klausen 🎉
Browse files

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.
parent db2a1bf3
......@@ -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
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment