main.yml 576 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
22
23
24
25
26
27
  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

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