Set-OPS-Public/roles/serveur_postfix/handlers/main.yml
Daniel Allaire 457b89927b Soumission courriel :587 interne (authentifiée) — boucle souveraine bouclée
Postfix (edge-mta) sert :587 (master.cf : STARTTLS + SMTP AUTH, seuls les
authentifiés relaient) ; SASL délégué à Dovecot (infra-mail, passdb LDAP)
via un auth-listener réseau (inet_listener sasl :12345). Interne seulement.

Prouvé (swaks) : testmail s'authentifie (235), Postfix accepte (250 queued),
courriel livré dans la boîte. Le courriel souverain fait recevoir ET envoyer.

Pièges : Dovecot 2.4 exige un nom de section inet_listener ; nouveau service
master.cf → restart (pas reload).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-03 23:17:36 -04:00

13 lines
390 B
YAML

---
- name: Recharger postfix
ansible.builtin.systemd:
name: "{{ serveur_postfix_service }}"
state: reloaded
when: not ansible_check_mode
# restart (pas reload) quand on ajoute un service master.cf (nouveau listener, ex. :587).
- name: Redémarrer postfix
ansible.builtin.systemd:
name: "{{ serveur_postfix_service }}"
state: restarted
when: not ansible_check_mode