# SPDX-License-Identifier: MIT
- name: 'Rebuild e-mail aliases lookup tables'
  ansible.builtin.shell: |
    newaliases
  listen: 'Ensure that a Mail Transfer Agent is running with newest config'

- name: 'Restart postfix.service'
  ansible.builtin.service:
    name: 'postfix.service'
    state: 'restarted'
    enabled: true
  listen: 'Ensure that a Mail Transfer Agent is running with newest config'