Sfoglia il codice sorgente

Sensible defaults for mailserver role

Thomas Buck 5 anni fa
parent
commit
d5e52a389f
1 ha cambiato i file con 24 aggiunte e 3 eliminazioni
  1. 24
    3
      roles/mailserver/defaults/main.yml

+ 24
- 3
roles/mailserver/defaults/main.yml Vedi File

@@ -17,8 +17,29 @@ mail_header_privacy: 1
17 17
 friendly_networks:
18 18
   - ""
19 19
 
20
-virtual_domains: []
21
-mail_virtual_users: []
22
-mail_virtual_aliases: []
20
+virtual_domains:
21
+  - name: "{{ domain }}"
22
+    pk_id: 1
23
+    doc_root: "/var/www/{{ domain }}"
24
+
25
+mail_virtual_users:
26
+  - account: "{{ main_user_name }}"
27
+    domain: "{{ domain }}"
28
+    password: "{{ lookup('password', secret + '/' + 'mail_main_user_password length=20') | doveadm_pw_hash }}"
29
+    domain_pk_id: 1
30
+
31
+mail_virtual_aliases:
32
+  - source: "root@{{ domain }}"
33
+    destination: "{{ admin_email }}"
34
+    domain_pk_id: 1
35
+  - source: "postmaster@{{ domain }}"
36
+    destination: "{{ admin_email }}"
37
+    domain_pk_id: 1
38
+  - source: "webmaster@{{ domain }}"
39
+    destination: "{{ admin_email }}"
40
+    domain_pk_id: 1
41
+  - source: "abuse@{{ domain }}"
42
+    destination: "{{ admin_email }}"
43
+    domain_pk_id: 1
23 44
 
24 45
 zpush_timezone: "{{ common_timezone | default('Etc/UTC') }}"

Loading…
Annulla
Salva