|
@@ -8,6 +8,7 @@
|
8
|
8
|
- postgresql-9.1
|
9
|
9
|
- postfix-pgsql
|
10
|
10
|
- python-psycopg2
|
|
11
|
+ - postfix-pcre
|
11
|
12
|
|
12
|
13
|
- name: Set postgres password
|
13
|
14
|
command: sudo -u {{ db_admin_username }} psql -d {{ db_admin_username }} -c "ALTER USER postgres with password '{{ db_admin_password }}';"
|
|
@@ -25,6 +26,14 @@
|
25
|
26
|
template: src=mailserver.sql.j2 dest=/etc/postfix/import.sql owner=root group=root mode=0600
|
26
|
27
|
notify: import sql postfix
|
27
|
28
|
|
|
29
|
+- name: Create postfix maps directory
|
|
30
|
+ file: path=/etc/postfix/maps state=directory owner=root group=root
|
|
31
|
+ when: mail_header_privacy == 1
|
|
32
|
+
|
|
33
|
+- name: Copy smtp_header_checks.pcre
|
|
34
|
+ copy: src=etc_postfix_maps_smtp_header_checks.pcre dest=/etc/postfix/maps/smtp_header_checks.pcre owner=root group=root
|
|
35
|
+ when: mail_header_privacy == 1
|
|
36
|
+
|
28
|
37
|
- name: Copy main.cf
|
29
|
38
|
template: src=etc_postfix_main.cf.j2 dest=/etc/postfix/main.cf owner=root group=root
|
30
|
39
|
notify: restart postfix
|