Files
Kristian Klausen b7534f97a2 postfix: Manage and fix broken GitLab service desk aliases
These has been managed outside Ansible for a long time, but with the
recent change of the GitLab email domain[1], we must set X-Delivered-To
to the service desk email address ourselves as Postfix no longer sets it
to the value expected by GitLab.

[1] a892df58 ("Use dedicated subdomain for GitLab emails")

Fixes: a892df58 ("Use dedicated subdomain for GitLab emails")
2025-08-24 13:25:27 +02:00

18 lines
408 B
YAML

- name: Restart postfix
service:
name: postfix
state: restarted
- name: Reload postfix # noqa no-changed-when
command: postfix reload
- name: Postmap additional files # noqa no-changed-when
command: postmap /etc/postfix/{{ item }}
loop:
- domains
- msa_header_checks
- users_managed
- name: Update aliases db # noqa no-changed-when
command: postalias /etc/postfix/aliases