---

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

- name: reload postfix
  command: postfix reload

- 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
    - domains
    - msa_header_checks

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