aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-08-23 04:10:46 +0100
committerGravatar Joe Banks <[email protected]>2024-08-23 16:52:20 +0100
commitb5fa09e3073a8235316f68abd706ae69fa011381 (patch)
tree9562a2bc12c1655c74719571b1f0ed442e3afafa
parentAdd documentation on Dovecot (diff)
Separate userdb homedir and maildir for sieve support
-rw-r--r--ansible/roles/dovecot/templates/configs/auth-ldap.conf.ext.j22
-rw-r--r--ansible/roles/dovecot/templates/dovecot-ldap.conf.ext.j22
2 files changed, 2 insertions, 2 deletions
diff --git a/ansible/roles/dovecot/templates/configs/auth-ldap.conf.ext.j2 b/ansible/roles/dovecot/templates/configs/auth-ldap.conf.ext.j2
index 84d6865..e9c5fdc 100644
--- a/ansible/roles/dovecot/templates/configs/auth-ldap.conf.ext.j2
+++ b/ansible/roles/dovecot/templates/configs/auth-ldap.conf.ext.j2
@@ -13,5 +13,5 @@ passdb {
userdb {
driver = static
- args = uid=vmail gid=vmail home=/var/vmail/%u
+ args = uid=vmail gid=vmail mail=maildir:/var/vmail/%u home=/home/%u
}
diff --git a/ansible/roles/dovecot/templates/dovecot-ldap.conf.ext.j2 b/ansible/roles/dovecot/templates/dovecot-ldap.conf.ext.j2
index aef69c7..4555726 100644
--- a/ansible/roles/dovecot/templates/dovecot-ldap.conf.ext.j2
+++ b/ansible/roles/dovecot/templates/dovecot-ldap.conf.ext.j2
@@ -56,7 +56,7 @@ base = cn=users,cn=accounts,dc=box,dc=pydis,dc=wtf
#
# There are also other special fields which can be returned, see
# http://wiki2.dovecot.org/UserDatabase/ExtraFields
-# user_attrs = uidNumber=uid, gidNumber=gid, uid=home=/var/vmail/%$
+user_attrs = uidNumber=uid, gidNumber=gid, uid=home=/home/%$
# Filter for user lookup. Some variables can be used (see
# http://wiki2.dovecot.org/Variables for full list):