From 180e0b6d7927e1f74af22a7c939fe1ae84867660 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 4 Jan 2024 14:14:38 +0100 Subject: Install postfix and configure it as a nullmailer. --- handlers/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'handlers/main.yml') diff --git a/handlers/main.yml b/handlers/main.yml index d3d7755..9a4521f 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -26,5 +26,17 @@ - name: Restart OpenSSH service: name=ssh.service state=restarted +- name: Restart Postfix + service: name=postfix.service state=restarted + +- name: Reload Postfix + service: name=postfix.service state=reloaded + +- name: Run newaliases + command: /usr/bin/newaliases + +- name: Compile /etc/postfix/tls_policy + command: /usr/sbin/postmap /etc/postfix/tls_policy + - name: Update initramfs command: /usr/sbin/update-initramfs -u -- cgit v1.2.3