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