Quellcode durchsuchen

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 vor 11 Jahren
Ursprung
Commit
0b1a8633e5
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. 3
    0
      roles/mailserver/tasks/dovecot.yml

+ 3
- 0
roles/mailserver/tasks/dovecot.yml Datei anzeigen

@@ -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

Laden…
Abbrechen
Speichern