From 1c947f6a561945bca76be57eb1d660b6470a7deb Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 12 Apr 2019 10:25:28 +0000 Subject: [PATCH] [postfix] set myhostname --- roles/postfix/templates/main.cf | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/postfix/templates/main.cf b/roles/postfix/templates/main.cf index bb066b2..e8ec1b9 100644 --- a/roles/postfix/templates/main.cf +++ b/roles/postfix/templates/main.cf @@ -1,3 +1,4 @@ +myhostname = {{ hostvars[inventory_hostname].ansible_host }} smtp_sasl_auth_enable = yes smtp_sasl_password_maps = static:SMTP_Injection:{{ secrets.sparkpost_api_key }} relayhost = [smtp.sparkpostmail.com]:587