main.yml 553 Bytes
Newer Older
Florian Pritz's avatar
Florian Pritz committed
1
2
3
---

- name: restart postfix
4
5
6
  service:
    name: postfix
    state: restarted
Florian Pritz's avatar
Florian Pritz committed
7
8
9
10

- name: reload postfix
  command: postfix reload

11
- name: postmap additional files
12
  command: postmap /etc/postfix/{{ item }}
13
14
15
16
17
18
19
20
21
  with_items:
    - access_client
    - access_sender
    - access_sender-post-filter
    - access_helo
    - access_recipient
    - transport
    - relocated
    - domains
22
    - msa_header_checks
23
24
25
26

- name: update aliases db
  command: postalias /etc/postfix/aliases

27
28
- name: postmap relay_passwords
  command: postmap /etc/postfix/relay_passwords