Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
0b1a8633e5
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3
    0
      roles/mailserver/tasks/dovecot.yml

+ 3
- 0
roles/mailserver/tasks/dovecot.yml Näytä tiedosto

17
   file: state=directory path=/decrypted/${item.name}/${item.primary_user} owner=vmail group=dovecot
17
   file: state=directory path=/decrypted/${item.name}/${item.primary_user} owner=vmail group=dovecot
18
   with_items:
18
   with_items:
19
     - ${mail_virtual_domains}
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
 - name: Copy dovecot.conf into place
24
 - name: Copy dovecot.conf into place
22
   copy: src=etc_dovecot_dovecot.conf dest=/etc/dovecot/dovecot.conf
25
   copy: src=etc_dovecot_dovecot.conf dest=/etc/dovecot/dovecot.conf

Loading…
Peruuta
Tallenna