Add autoexpunge and subscribe mailbox configs
This commit is contained in:
parent
873d15c61e
commit
dfef9192ef
1 changed files with 22 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue