Преглед на файлове

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…
Отказ
Запис