Alter postfix config to use public IPv6 address for outbound mails

This change alters the Postfix configuration to use the public
IPv6 address instead of the private IPv6 address when sending outbound
mails over IPv6.
This commit is contained in:
David McNett 2023-05-21 11:35:38 -05:00
parent 8b19d15735
commit 5e87b8bb11
No known key found for this signature in database
GPG Key ID: 2D6A927E2F361BFA
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ apt_install postfix postfix-sqlite postfix-pcre postgrey ca-certificates
tools/editconf.py /etc/postfix/main.cf \
inet_interfaces=all \
smtp_bind_address=$PRIVATE_IP \
smtp_bind_address6=$PRIVATE_IPV6 \
smtp_bind_address6=$PUBLIC_IPV6 \
myhostname=$PRIMARY_HOSTNAME\
smtpd_banner="\$myhostname ESMTP Hi, I'm a Mail-in-a-Box (Ubuntu/Postfix; see https://mailinabox.email/)" \
mydestination=localhost