Add autoexpunge and subscribe mailbox configs

This commit is contained in:
Tunui Franken 2024-07-25 18:48:48 +02:00
parent 873d15c61e
commit dfef9192ef

View file

@ -170,3 +170,25 @@
group: root group: root
mode: "644" mode: "644"
notify: Compile spam-to-folder.sieve notify: Compile spam-to-folder.sieve
- name: Add autoexpunge mailbox config
become: true
ansible.builtin.lineinfile:
path: /etc/dovecot/conf.d/15-mailboxes.conf
line: " autoexpunge = 30d"
insertafter: "mailbox {{ item }}"
loop:
- Junk
- Trash
notify: Reload dovecot service
- name: Add subscribed mailbox config
become: true
ansible.builtin.lineinfile:
path: /etc/dovecot/conf.d/15-mailboxes.conf
line: " auto = subscribed"
insertafter: 'special_use = \\{{ item }}'
loop:
- Junk
- Trash
notify: Reload dovecot service