From 5e87b8bb119206852c4d6d06b9d9043a8592c1b9 Mon Sep 17 00:00:00 2001 From: David McNett Date: Sun, 21 May 2023 11:35:38 -0500 Subject: [PATCH] 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. --- setup/mail-postfix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/mail-postfix.sh b/setup/mail-postfix.sh index 5787e8c9..7308458e 100755 --- a/setup/mail-postfix.sh +++ b/setup/mail-postfix.sh @@ -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