On Tue, 2011-12-27 at 17:24:57 -0500, Wietse Venema wrote: > ... > After I made "inet_protocols=all" the default on your request, I > received notice that Postfix no longer would build on freebsd.org > "build" systems, and that it would be removed from ports. These > build environments have IPv6 in the kernel but they have no IPv6 > interfaces. Basically, these are IPv4-only boxes with can IPv6 > configuration that violates the RFCs. > > These changes were made to avoid being kicked out of the ports: > > 20111117 > > Workaround: don't use IPv6 at build time. File: conf/main.cf. > > Workaround: don't abort when IPv6 is present but busted. > File: util/inet_proto.c. > > Now, I can easily remove the first workaround. But that won't > prevent the post-install script from adding "inet_protocols=ipv4" > to main.cf when you upgrade Postfix. > ...
FWIW, the FreeBSD Postfix port is patched so that post-install does not add "inet_protocols=ipv4" to main.cf during upgrades. Instead, users are notified[1] about the recent change of defaults, and asked to append the ipv4 line to their main.cf, if necessary. [1] This is in ports/UPDATING, a file users consult before upgrading any port. I elected to go this route to force users to pay attention to this particular change. -- Sahil Tandon
--- conf/post-install.orig 2011-10-11 20:39:19.000000000 -0400 +++ conf/post-install 2011-10-11 20:41:58.000000000 -0400 @@ -790,18 +790,6 @@ EOF } - # Postfix 2.9. - # Safety net for incompatible changes in IPv6 defaults. This - # requires that the default is "inet_protocols = ipv4" when - # IPv6 support is not compiled in. See util/sys_defs.h. - - test "`$POSTCONF -dh inet_protocols`" = "ipv4" || - test -n "`$POSTCONF -c $config_directory -nh inet_protocols`" || { - echo COMPATIBILITY: editing main.cf, setting inet_protocols=ipv4. - echo Specify inet_protocols explicitly if you want to enable IPv6. - echo In a future release IPv6 will be enabled by default. - $POSTCONF -c $config_directory inet_protocols=ipv4 || exit 1 - } } # A reminder if this is the first time Postfix is being installed.