From 1f916f863db4b974b926476444ba673fd2c3d3d0 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 14 Jun 2022 09:13:31 +0200 Subject: [PATCH] install_postfix_: add section for (commented) parameter 'smtp_address_preference'. --- install_postfix_advanced.sh | 6 ++++++ install_postfix_base.sh | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/install_postfix_advanced.sh b/install_postfix_advanced.sh index 93fedad..f84d2b0 100755 --- a/install_postfix_advanced.sh +++ b/install_postfix_advanced.sh @@ -1185,6 +1185,12 @@ mynetworks = smtp_bind_address = $IPV4 smtp_bind_address6 = $IPV6 +# The address type ("ipv6", "ipv4" or "any") that the Postfix SMTP client will try first, +# when a destination has IPv6 and IPv4 addresses with equal MX preference. This feature +# has no effect unless the inet_protocols setting enables both IPv4 and IPv6. +# +#smtp_address_preference = ipv4 + EOF else cat <> /etc/postfix/main.cf diff --git a/install_postfix_base.sh b/install_postfix_base.sh index a650121..5e52522 100755 --- a/install_postfix_base.sh +++ b/install_postfix_base.sh @@ -546,6 +546,12 @@ mynetworks = #smtp_bind_address = $IPV4 #smtp_bind_address6 = $IPV6 +## - The address type ("ipv6", "ipv4" or "any") that the Postfix SMTP client will try first, +## - when a destination has IPv6 and IPv4 addresses with equal MX preference. This feature +## - has no effect unless the inet_protocols setting enables both IPv4 and IPv6. +## - +#smtp_address_preference = ipv4 + EOF else cat <> /etc/postfix/main.cf