summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/IMAP/tasks/imap.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/IMAP/tasks/imap.yml b/roles/IMAP/tasks/imap.yml
index 7245732..6191a50 100644
--- a/roles/IMAP/tasks/imap.yml
+++ b/roles/IMAP/tasks/imap.yml
@@ -16,6 +16,14 @@
password=!
state=present
+# Required for dbox, see
+# http://wiki2.dovecot.org/MailboxFormat/dbox#Multi-dbox
+- name: Create a nightly cron job to purge expunged messages
+ cron: name="Purge expunged messages"
+ minute=7 hour=5
+ user=vmail cron_file=doveadm-purge
+ job="/usr/bin/doveadm purge -A"
+
# The ownership and permissions ensure that dovecot won't try to
# deliver mails under an umounted mountpoint.
- name: Create a home directory for user 'vmail'