From 4554e9e66d688c417a06f1a808403f985e4a2a22 Mon Sep 17 00:00:00 2001 From: Jon Lockwood Date: Fri, 18 Feb 2022 14:16:28 +0930 Subject: [PATCH] feat(postfix): specify my_networks as localhost ONLY mynetworks set to only be localhost as accepted/trusted. MR !7 --- dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dockerfile b/dockerfile index 2f93306..6ee6844 100644 --- a/dockerfile +++ b/dockerfile @@ -152,6 +152,8 @@ RUN postconf -e "maillog_file=/var/log/postfix.log" \ && postconf -e "virtual_mailbox_domains=ldap:/etc/postfix/ldap/virtual_email_domains" \ # postfix user mapping && postconf -e "virtual_alias_maps=ldap:/etc/postfix/ldap/virtual_alias_maps" \ + # Only trust localhost + && postconf -e "mynetworks_style = host" \ # by default encryption is optional && postconf -e "smtpd_tls_security_level=may" \ # log outbound tls connection information