Hi,

I am running postfix 3.8.4 on FreeBSD 14.0-STABLE and recompile postfix (and 
all my other ports) on a regular basis (by poudriere).


Very recently I re-enabled IPv6 on my servers, and removed my 
'inet_protocols=ipv4' from main.cf and did *not* add 'inet_protocols=all' 
because I checked for the default setting:

     mail> postconf -d inet_protocols
     inet_protocols = all

Thus, my main.cf lacks *any* inet_protocols setting!


Today, I had to recompile and reinstall all of my ports (ABI change), and 
found, that 'inet_protocols=ipv4' has been added to main.cf?!

I found https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263813 and there 
https://github.com/vdukhovni/postfix/blob/master/postfix/conf/post-install

'post-install' tells me:

    # Postfix 2.9.
    # Safety net for incompatible changes in IPv6 defaults.
    # PLEASE DO NOT REMOVE THIS CODE. ITS PURPOSE IS TO AVOID AN
    # UNEXPECTED DROP IN PERFORMANCE AFTER UPGRADING FROM POSTFIX
    # BEFORE 2.9.
    # This code assumes 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 -n inet_protocols`" || {
        cat <<EOF | ${FMT}
    COMPATIBILITY: editing $config_directory/main.cf, setting
    inet_protocols=ipv4.  Specify inet_protocols explicitly if you
    want to enable IPv6.
    In a future release IPv6 will be enabled by default.
EOF
        $POSTCONF -c $config_directory inet_protocols=ipv4 || exit 1
    }

During poudriere's postfix compilation this script is used, and thus my main.cf 
has became modified.


I do not complain, I do want to understand the rationale behind this behaviour.

#) Shouldn't that "safety net" only being applied while upgrading to 3.9 and 
not recompiling 3.8.4?
#) Why is the default of inet_protocol 'all' ignored if not found in main.cf?


FTR: If I do add 'inet_protocols=all' into my main.cf, nothing becomes changed 
by post-install (my workaround for the time being).


Again, no complaints, I do only want to understand it, and/or become taught 
about my mistaken thinking.


Thanks in advance and regards,
Michael

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to