Sfoglia il codice sorgente

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 anni fa
parent
commit
0b1a8633e5
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3
    0
      roles/mailserver/tasks/dovecot.yml

+ 3
- 0
roles/mailserver/tasks/dovecot.yml Vedi File

@@ -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…
Annulla
Salva