Skip to content

Commit 4085af3

Browse files
committed
set static group and user for every mailbox
1 parent 042db5b commit 4085af3

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

roles/postfix/templates/dovecot-ldap.conf.ext.j2

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ uris = ldap://{{ ldap_server }}
33
# choose bind method instead of simple authentication
44
auth_bind = yes
55

6+
# deliver everything to the same maildir owned by the postman user
7+
user_global_uid = postman
8+
user_global_gid = postman
9+
610
# pass_attrs
711
# specifies a comma-separated list of attributes that are returned from the LDAP.
812
# If you set it to empty, all the attributes are returned.
@@ -31,11 +35,3 @@ scope = subtree
3135

3236
# ldap filter, return an entity that is a virtual mail account
3337
user_filter = (&(objectClass=VirtualMailAccount)(mail=%n)(accountActive=TRUE)(delete=FALSE))
34-
35-
# to prevent the uid and gid mappings from the ldap object to
36-
# dovecot mailbox, we map them to unused ldap fields
37-
# the sytnax is: "ldap_attribute = dovecot_attribute"
38-
# this is done because otherwise dovecot will deliver
39-
# emails to the user directory instead of the maildir directory
40-
# handled by the user postman
41-
user_attrs = disablehomeDirectory=home,disableuidNumber=uid,disablegidNumber=gid

0 commit comments

Comments
 (0)