dodavanje ipv6 localhost adrese u mynetworks
[postfix-cn.git] / debian / postinst
index fe02c15..f59a5df 100755 (executable)
@@ -81,9 +81,9 @@ postconf -e myorigin="$mailname"
 postconf -e append_dot_mydomain="yes"
 postconf -e append_at_myorigin="yes"
 
-# dodaj 127.0.0.0/8 i netaddr
+# dodaj 127.0.0.0/8, netaddr i ipv6-localhost
 mynetworks="`postconf -h mynetworks`"
-for i in "127.0.0.0/8" "$netaddr"; do
+for i in "127.0.0.0/8" "$netaddr" "[::1]/128"; do
   if ! echo $mynetworks | grep -q $i; then
    mynetworks="$mynetworks, $i"
   fi