Explorar el Código

Sensible defaults for mailserver role

Thomas Buck hace 5 años
padre
commit
d5e52a389f
Se han modificado 1 ficheros con 24 adiciones y 3 borrados
  1. 24
    3
      roles/mailserver/defaults/main.yml

+ 24
- 3
roles/mailserver/defaults/main.yml Ver fichero

@@ -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…
Cancelar
Guardar