From 9662013bed85107d783623bf04ead3d896335f77 Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 12 May 2020 12:58:03 -0500 Subject: [PATCH] Fix up postfix a bit more, make it a general role --- ec2.yml | 4 ++++ roles/postfix-null/templates/main.cf | 1 + 2 files changed, 5 insertions(+) diff --git a/ec2.yml b/ec2.yml index d9cfef0..521f5eb 100644 --- a/ec2.yml +++ b/ec2.yml @@ -23,6 +23,10 @@ - role: backups vars: backups_outdir: "/cold/backups" + - role: postfix-null + vars: + postfix_hostname: "9iron.club" + postfix_domain: "9iron.club" - role: grafana vars: grafana_mysql_password: !vault | diff --git a/roles/postfix-null/templates/main.cf b/roles/postfix-null/templates/main.cf index c32ed78..ce771be 100644 --- a/roles/postfix-null/templates/main.cf +++ b/roles/postfix-null/templates/main.cf @@ -1,4 +1,5 @@ myhostname = {{ postfix_hostname }} +mydomain = {{ postfix_domain }} myorigin = $mydomain #relayhost = $mydomain inet_interfaces = loopback-only