diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2016-12-10 17:40:49 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2016-12-10 17:40:49 +0100 |
commit | 1038fa3d50bda90377117559a9f685e2e7389d8f (patch) | |
tree | 251f096f33c61c5d2a241dbc0f36ab757c114d0c /roles/IMAP/tasks | |
parent | 7a66e096695a25427311204022bc521da08c48d9 (diff) |
dovecot: use Single-Instance Storage for mail attachments.
Diffstat (limited to 'roles/IMAP/tasks')
-rw-r--r-- | roles/IMAP/tasks/imap.yml | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/roles/IMAP/tasks/imap.yml b/roles/IMAP/tasks/imap.yml index 51e7694..f4a23e4 100644 --- a/roles/IMAP/tasks/imap.yml +++ b/roles/IMAP/tasks/imap.yml @@ -36,11 +36,21 @@ owner=root group=root mode=0755 -- name: Create /home/mail/virtual - file: path=/home/mail/virtual +- name: Create /home/mail/{virtual,attachments,spamspool} + file: path=/home/mail/{{ item }} state=directory owner=vmail group=vmail mode=0700 + with_items: + - virtual + - attachments + - spamspool + +- name: Create a cronjob for SIS deduplication + copy: src=etc/cron.d/doveadm + dest=/etc/cron.d/doveadm + owner=root group=root + mode=0644 - name: Create virtual mailbox directories file: path=/etc/dovecot/virtual/{{ item }} @@ -64,12 +74,6 @@ - recent - unseen -- name: Create directory /home/mail/spamspool - file: path=/home/mail/spamspool - state=directory - owner=vmail group=vmail - mode=0700 - - name: Create directory /etc/dovecot/ssl file: path=/etc/dovecot/ssl state=directory |