summaryrefslogtreecommitdiffstats
path: root/roles/IMAP/tasks
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2014-06-28 04:54:56 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:52:03 +0200
commit0040ab5bec158c5d316b6c0db22d9327ecc60e3a (patch)
tree90443b468a680aa2dc1b724ad5c3df2b9fd44375 /roles/IMAP/tasks
parentd2a197a219bc9e52d762abfede5268856ec86fc9 (diff)
Create a nightly cron job to purge expunged messages.
This is required for dbox, see http://wiki2.dovecot.org/MailboxFormat/dbox#Multi-dbox
Diffstat (limited to 'roles/IMAP/tasks')
-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'