From 12b645e574c7672e8f99b874fe23062d8c101333 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 15 Apr 2019 10:01:50 -0500 Subject: [PATCH] zabbix-server: Allow SMTP relay from any loopback The Zabbix server resolves *localhost* to `::1`, but Postfix resolves it to `127.0.0.1`. This causes Postfix to reject incoming mail from Zabbix with "Relay access denied." Explicitly setting the `mynetworks` setting to include both the IPv4 and IPv6 loopback addresses will ensure that no mail is rejected from local processes, regardless of how name resolution happens. --- group_vars/zabbix-server.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/group_vars/zabbix-server.yml b/group_vars/zabbix-server.yml index 63b9ec6..51574ce 100644 --- a/group_vars/zabbix-server.yml +++ b/group_vars/zabbix-server.yml @@ -6,4 +6,5 @@ pg_hba_extra: address: '' method: md5 smtp_mynetworks: -- localhost +- '[::1]' +- 127.0.0.7