summaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-02-15 14:21:02 +0100
committerGuilhem Moulin <guilhem@fripost.org>2024-02-15 14:26:05 +0100
commit20708ade1f56a1ef84b22ecdca42af9f9bd45c69 (patch)
treecbfdd72d949d3f766c857ed162836917d66e2c0a /tasks
parentd74a10cbc6abe451c39eef30b6c610d916090448 (diff)
Postfix: Use relay-smtps as relayhost transport.
Diffstat (limited to 'tasks')
-rw-r--r--tasks/mail.yml10
1 files changed, 9 insertions, 1 deletions
diff --git a/tasks/mail.yml b/tasks/mail.yml
index 89d8530..8f58c8a 100644
--- a/tasks/mail.yml
+++ b/tasks/mail.yml
@@ -13,7 +13,7 @@
notify:
- Run newaliases
-- name: Configure Postfix
+- name: Configure Postfix (main.cf)
template: src=etc/postfix/main.cf.j2
dest=/etc/postfix/main.cf
owner=root group=root
@@ -21,6 +21,14 @@
notify:
- Reload Postfix
+- name: Configure Postfix (master.cf)
+ copy: src=etc/postfix/master.cf
+ dest=/etc/postfix/master.cf
+ owner=root group=root
+ mode=0644
+ notify:
+ - Restart Postfix
+
- name: Start Postfix
service: name=postfix.service enabled=true state=started