feat(postfix): specify my_networks as localhost ONLY

mynetworks set to only be localhost as accepted/trusted.

MR !7
This commit is contained in:
2022-02-18 14:16:28 +09:30
parent 5f7095f274
commit 4554e9e66d

View File

@ -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" \ && postconf -e "virtual_mailbox_domains=ldap:/etc/postfix/ldap/virtual_email_domains" \
# postfix user mapping # postfix user mapping
&& postconf -e "virtual_alias_maps=ldap:/etc/postfix/ldap/virtual_alias_maps" \ && 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 # by default encryption is optional
&& postconf -e "smtpd_tls_security_level=may" \ && postconf -e "smtpd_tls_security_level=may" \
# log outbound tls connection information # log outbound tls connection information