Allow IPv6 localhost in mynetworks
authorAlex Dehnert <alex@dehnerts.com>
Sun, 10 Jul 2022 17:56:50 +0000 (13:56 -0400)
committerAlex Dehnert <alex@dehnerts.com>
Sun, 10 Jul 2022 17:56:50 +0000 (13:56 -0400)
Otherwise, if a local sender (eg, mailman) happens to pick IPv6 instead of IPv4
to send over, it'll get relay access denied.

main.cf

diff --git a/main.cf b/main.cf
index 92e362ce1485a1048bc9e2a3d3ab211f61fa5802..c068fdccd36b6710bd09ab4e65a111d00b845b99 100644 (file)
--- a/main.cf
+++ b/main.cf
@@ -256,7 +256,7 @@ unknown_local_recipient_reject_code = 450
 # (the value on the table right-hand side is not used).
 #
 # Added by Alex Dehnert
 # (the value on the table right-hand side is not used).
 #
 # Added by Alex Dehnert
-mynetworks = 66.92.29.156/32, 66.92.29.144/32, 127.0.0.1/32, 18.111.8.18/32, 18.102.208.15/32
+mynetworks = 66.92.29.156/32, 66.92.29.144/32, 127.0.0.1/32, 18.111.8.18/32, 18.102.208.15/32, [::1]/128
 #mynetworks = 168.100.189.0/28, 127.0.0.0/8
 #mynetworks = $config_directory/mynetworks
 #mynetworks = hash:/etc/postfix/network_table
 #mynetworks = 168.100.189.0/28, 127.0.0.0/8
 #mynetworks = $config_directory/mynetworks
 #mynetworks = hash:/etc/postfix/network_table