"postfix-current" broken on amd64 platform

Peter Jeremy peter at rulingia.com
Sun Nov 25 20:06:20 UTC 2012


Resurrecting an old thread because I've just run into this problem...

[postfix dies with a "Protocol not supported" when built in a jail
 without an IPv6 address]

On 2011-Nov-17 15:41:12 -0500, Wietse Venema <wietse at porcupine.org> wrote:
>A more proactive workaround would be to treat "protocol not supported"
>as a non-fatal error, just like "address family not supported" is.
>
>Please let me know if this works in the build cluster. It will log
>a warning but that should be justfied, because the system does have
>an abnormal configuration.
>
>	Wietse
>
>*** src/util/inet_proto.c-	Tue Jan  8 15:36:13 2008
>--- src/util/inet_proto.c	Thu Nov 17 08:49:31 2011
>***************
>*** 219,225 ****
>  	    pf->dns_atype_list = make_unsigned_vector(3, T_A, T_AAAA, 0);
>  	    pf->sa_family_list = make_uchar_vector(3, AF_INET, AF_INET6, 0);
>  	    break;
>! 	} else if (errno == EAFNOSUPPORT) {
>  	    msg_warn("%s: IPv6 support is disabled: %m", context);
>  	    msg_warn("%s: configuring for IPv4 support only", context);
>  	    /* FALLTHROUGH */
>--- 219,225 ----
>  	    pf->dns_atype_list = make_unsigned_vector(3, T_A, T_AAAA, 0);
>  	    pf->sa_family_list = make_uchar_vector(3, AF_INET, AF_INET6, 0);
>  	    break;
>! 	} else if (errno == EAFNOSUPPORT || errno == EPROTONOSUPPORT) {
>  	    msg_warn("%s: IPv6 support is disabled: %m", context);
>  	    msg_warn("%s: configuring for IPv4 support only", context);
>  	    /* FALLTHROUGH */

I've just bumped into this exact situation with mail/postfix28 and
suspect that earlier postfix ports have the same issue.  The above fix
works on postfix28 and I would request that it be added to that port's
patch list.  Since this is a workaround for a FreeBSD-specific issue,
I don't believe it's reasonable to expect Wietse to patch old postfix
variants to work around it.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20121126/b6d98621/attachment.sig>


More information about the freebsd-ports mailing list