main.yml 564 Bytes
Newer Older
Florian Pritz's avatar
Florian Pritz committed
1
2
3
4
5
6
7
8
---

- name: restart postfix
  service: name=postfix state=restarted

- name: reload postfix
  command: postfix reload

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

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

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