From ebb45b3a4a9ad767c3b4074876fafc189c93c7e0 Mon Sep 17 00:00:00 2001 From: Tunui Franken Date: Tue, 25 Mar 2025 12:19:08 +0100 Subject: [PATCH] Add mail_uid / mail_gid for dovecot --- roles/mailserver_dovecot/tasks/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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: