Reviving an old thread from 2011-09:

Mark Martinec:
> Trying to install postfix on an IPv6-only host
>   FreeBSD 9.0B1, http://wiki.freebsd.org/IPv6Only
>   ports: mail/postfix-current,
> but the installation chokes in the post-install phase.
> Running that failing command manually (in the ports work directory)
> gives:
>   # bin/postfix -v post-install
>   postfix: name_mask: ipv4
>   postfix: name_mask: host
>   postfix: inet_addr_local: configured 0 IPv4 addresses
>   postfix: fatal: could not find any active network interfaces

Wietse Venema wrote:
> The built-in default enables IPv4 only, to avoid headaches with
> systems that have IPv6 support but no external IPv6 connectivity.
> Lookup up AAAA addresses would be wasteful, and trying to connect
> to them would be pointless.
> 
> A workaround is to do the same thing as when local_recipient_maps
> was introduced: the inet_protocols built-in default different from
> the installed configuration.
> 
> In this case, the built-in default would enable IPv6, while the
> post-install installed configuration is IPv4 only (but post-install
> would not change an explicit inet_protocols main.cf setting).

> > I was hoping this approach would make its way into current eventually ...
>It will. I have added the note to the wishlist.


I thought this was implemented in current by:

| HISTORY
| 20110914
|   Incompatibility: the default inet_protocols value is now
| "all" instead of "ipv4", meaning use both IPv4 and IPv6.
| As a compatibility workaround for sites without global IPv6
| connectivity, the commands "make upgrade" and "postfix
| upgrade-configuration" append "inet_protocols = ipv4" to
| main.cf when no explicit setting is present.  This compatibility
| workaround will be phased out in a future release.  Files:
| util/sys_defs.h, conf/post-install, proto/postconf.proto.
|
| Incompatibility: the default smtp_address_preference value
| is now "any" instead of "ipv6", meaning choose randomly
| between IPv6 and IPv4.  With this the Postfix SMTP client
| will have more success delivering mail to sites that have
| problematic IPv6 configurations.  Files: global/mail_params.h,
| proto/postconf.proto.

... but apparently it was not in its entirety.

Trying to install postfix-2.9-20111219 from ports on FreeBSD 9.0
(with an inet6-only kernel), the installation fails as before:

postfix-current$ make install
...
Skipping /usr/local/share/doc/postfix/postfix-power.png...
Skipping /usr/local/share/doc/postfix/scache.8.html...
Skipping /usr/local/share/doc/postfix/tlsmgr.8.html...
postfix: fatal: could not find any active network interfaces
*** Error code 1
Stop in /usr/ports/mail/postfix-current.

or manually in the /usr/ports/mail/postfix-current/work/postfix-2.9-20111219 :
# bin/postfix -v post-install
postfix: name_mask: ipv4
postfix: name_mask: host
postfix: inet_addr_local: configured 0 IPv4 addresses
postfix: fatal: could not find any active network interfaces


> It will. I have added the note to the wishlist.

So ... Dear Santa ...  :)

  Mark

Reply via email to