瀏覽代碼

Set permissions and owner on virtual mail domains

Without the owner being set to vmail and dovecot, when a virtual user
tries to access their mail account, dovecot throws an error that it does
not have permission to create the mail folder for the user.

With the owner and permissions being set the user's mail directory is
created and they can successfully sign in.
Shawn Sorichetti 11 年之前
父節點
當前提交
0b1a8633e5
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      roles/mailserver/tasks/dovecot.yml

+ 3
- 0
roles/mailserver/tasks/dovecot.yml 查看文件

@@ -17,6 +17,9 @@
17 17
   file: state=directory path=/decrypted/${item.name}/${item.primary_user} owner=vmail group=dovecot
18 18
   with_items:
19 19
     - ${mail_virtual_domains}
20
+  file: state=directory path=/decrypted/${item.name} owner=vmail group=dovecot mode=770
21
+  with_items:
22
+    - ${mail_virtual_domains}
20 23
 
21 24
 - name: Copy dovecot.conf into place
22 25
   copy: src=etc_dovecot_dovecot.conf dest=/etc/dovecot/dovecot.conf

Loading…
取消
儲存