~nka/ansible-role-dovecot

03f0b864b29b8ce5c0faef3f3a8223e8fd31a641 — Nicolas KAROLAK 2 months ago 5c9e85e master v1.1.0
add auto expunge of trash and junk
1 files changed, 11 insertions(+), 1 deletions(-)

M tasks/main.yml
M tasks/main.yml => tasks/main.yml +11 -1
@@ 113,4 113,14 @@
    force: true
    state: link

...
- name: expunge trash cronjob
  cron:
    job: '/usr/bin/doveadm expunge -A mailbox Trash savedbefore 14d'
    name: 'expunge trash'
    special_time: 'daily'

- name: expunge junk cronjob
  cron:
    job: '/usr/bin/doveadm expunge -A mailbox Junk savedbefore 14d'
    name: 'expunge junk'
    special_time: 'daily'