(or "localhost" in inet_interfaces won't work)
Changed files:
postfix-ipv6.patch -> 1.2
#ifndef INADDR_NONE
#define INADDR_NONE 0xffffffff
-@@ -48,15 +51,45 @@
+@@ -48,15 +51,47 @@
#include <inet_addr_list.h>
#include <inet_addr_host.h>
+ error = getaddrinfo(hostname, NULL, &hints, &res0);
+ if (error == 0) {
+ for (res = res0; res; res = res->ai_next) {
++ if(res->ai_family != AF_INET && res->ai_family != AF_INET6)
++ continue;
+ /* filter out address families that are not supported */
+ s = socket(res->ai_family, SOCK_DGRAM, 0);
+ if (s < 0)