diff --git a/roles/mailserver_dovecot/tasks/main.yml b/roles/mailserver_dovecot/tasks/main.yml index 07b7ca4..cfeff83 100644 --- a/roles/mailserver_dovecot/tasks/main.yml +++ b/roles/mailserver_dovecot/tasks/main.yml @@ -101,6 +101,22 @@ line: 'mail_location = maildir:~/Maildir' notify: Reload dovecot service +- name: Configure mail_uid + become: true + ansible.builtin.lineinfile: + path: /etc/dovecot/conf.d/10-mail.conf + regexp: '^#?mail_uid =.*' + line: 'mail_uid = 5000' + notify: Reload dovecot service + +- name: Configure mail_gid + become: true + ansible.builtin.lineinfile: + path: /etc/dovecot/conf.d/10-mail.conf + regexp: '^#?mail_gid =.*' + line: 'mail_gid = 5000' + notify: Reload dovecot service + - name: Add quota plugin become: true ansible.builtin.lineinfile: