From 5b2580056dd60e920364985c46ba8effd10d34d0 Mon Sep 17 00:00:00 2001 From: Solal Nathan Date: Tue, 16 Feb 2021 18:10:39 +0100 Subject: [PATCH] :bug: Final fix, should stop sending ill-formed mail from now on --- roles/postfix_non_mailhost/templates/main.cf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/postfix_non_mailhost/templates/main.cf.j2 b/roles/postfix_non_mailhost/templates/main.cf.j2 index 5b90030..d5f5166 100644 --- a/roles/postfix_non_mailhost/templates/main.cf.j2 +++ b/roles/postfix_non_mailhost/templates/main.cf.j2 @@ -20,6 +20,7 @@ compatibility_level = 2 # Send mail as user@{{ ansible_fqdn }} myhostname = {{ ansible_fqdn }} myorigin = $myhostname +mydomain = $myhostname # Specify the trusted networks mynetworks = 127.0.0.0/8 {{ local_network }}