Skip to content

Commit f41b640

Browse files
committed
set global uid/gid in dovecot config
1 parent 0a22fe9 commit f41b640

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

roles/postfix/tasks/main.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,15 @@
103103
- template: src=dovecot-ldap.conf.ext.j2 dest=/etc/dovecot/dovecot-ldap.conf.ext
104104
notify: restart_dovecot
105105

106+
- name: provide global uid/gid to dovecot
107+
lineinfile:
108+
dest: /etc/dovecot/dovecot.conf
109+
line: "{{ item }}"
110+
state: present
111+
with_items:
112+
- "mail_uid = postman"
113+
- "mail_gid = postman"
114+
106115
#- lineinfile: dest=/etc/postfix/main.cf line="content_filter=smtp-amavis:[127.0.0.1]:10024" state=present
107116
# notify: restart_postfix
108117

0 commit comments

Comments
 (0)