summaryrefslogtreecommitdiffstats
path: root/roles/IMAP/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/IMAP/tasks')
-rw-r--r--roles/IMAP/tasks/imap.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/roles/IMAP/tasks/imap.yml b/roles/IMAP/tasks/imap.yml
index 67c2bcc..e1f005d 100644
--- a/roles/IMAP/tasks/imap.yml
+++ b/roles/IMAP/tasks/imap.yml
@@ -19,8 +19,10 @@
- name: Create a home directory for user 'vmail'
file: path=/home/mail
state=directory
- owner=vmail group=vmail
- mode=0700
+ # The ownership and permissions ensure that dovecot won't try to
+ # deliver mails under an umounted mountpoint.
+ owner=root group=root
+ mode=0755
- name: Create virtual mailbox directories
file: path=/etc/dovecot/virtual/{{ item }}