In message <[email protected]>
Viktor Dukhovni writes:
> > On Jan 31, 2016, at 12:24 AM, Curtis Villamizar <[email protected]>
> > wrote:
> >
> >>> /usr/local/sbin/postconf: warning: inet_protocols: disabling IPv4
> >>> name/address support: Protocol not supported
> >>>
> >>> even though /etc/postfix/main.cf has inet_protocols = ipv6
> >>
> >> What happens when you run:
> >>
> >> # postconf -dh config_directory
> >>
> >> Does it report those warnings? Does the outcome depend on the setting
> >> of inet_protocols in the default configuration file?
>
> > No complaints for postconf. I don't think postconf will try to open
> > sockets and realize that there is no ipv4 address.
>
> And yet, "postconf" is exactly the program that reported the error message.
> It says so quite plainly on the first line I quote.
>
> Did you in fact revert the default configuration to the version for which
> you observe the above issue?
>
> If not "postconf -dh config_directory", then how about:
>
> # postconf -c $(postconf -dh config_directory) -h
> multi_instance_directories
I use tcsh so:
# sh -c 'postconf -c $(postconf -dh config_directory ) \
-h multi_instance_directories'
postconf: warning: inet_protocols: disabling IPv4 name/address
support: Protocol not supported
# postconf -c /etc/postfix -h multi_instance_directories
This didn't complain about smtputf8_enable but did complain about
inet_protocols. The second form didn't complain at all.
> This is used to determine whether you're starting a secondary instance, and
> uses
> the default configuration directory, which really needs to be properly
> configured,
> even with "postfix -c ...".
So I would have to edit both?
If I do this:
pushd /usr/local/etc/postfix/
mv main.cf main.cf.orig
ln -s ../../../../etc/postfix/main.cf main.cf
Then try a few commands:
# postconf -dh config_directory
# sh -c 'postconf -c $(postconf -dh config_directory ) \
-h multi_instance_directories'
postconf: warning: /usr/local/etc/postfix/main.cf, line 24:
overriding earlier entry: config_directory=/usr/local/etc/postfix
# postmap hash:/etc/postfix/my-domains
postmap: warning: /usr/local/etc/postfix/main.cf, line 24:
overriding earlier entry: config_directory=/usr/local/etc/postfix
So different complaint with the symlink.
> --
> Viktor.
Curtis