From 0040ab5bec158c5d316b6c0db22d9327ecc60e3a Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sat, 28 Jun 2014 04:54:56 +0200 Subject: Create a nightly cron job to purge expunged messages. This is required for dbox, see http://wiki2.dovecot.org/MailboxFormat/dbox#Multi-dbox --- roles/IMAP/tasks/imap.yml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'roles/IMAP/tasks') 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' -- cgit v1.2.3