On Thu, 15 Jul 1999, Marc Martinez wrote: > Hello, I was just wondering if there was any interest in postfix > packages w/ ipv6 patches. I've been doing some testing with them and > the only major snag I've run into thusfar is problems resolving ::1 > causing smtpd to die after a rcpt to: but other than that basic > functionality is intact (I can send/receive ipv6 addressed mail, > etc). This is bad thing ;-)
Also you should use getaddrinfo() && getnameinfo() instead gethostbyaddr() etc., avoid sockaddr_in and sockaddr_in6; use sockaddr_storage etc.... Next thing. You should chceck if IPv6 is available in kernel and if it's available bind() to ipv6 socket etc. Now it's fail (if IPv6 isn't available) Jul 19 20:08:27 linstar postfix/master[856]: fatal: socket: Invalid argument Another thing: Jul 19 21:18:39 linstar postfix/smtp[1212]: 31CA426107: to=<[EMAIL PROTECTED]>, relay=none, delay=0, status=bounced (Name service error for domain linstar.ipv6.zsz2.starachowice.pl: Host not found) while [EMAIL PROTECTED] /root# host -t MX ipv6.zsz2.starachowice.pl ipv6.zsz2.starachowice.pl mail is handled (pri=0) by linstar.ipv6.zsz2.starachowice.pl and linstar.ipv6.zsz2.starachowice.pl has _only_ IPv6 address. ps. small patch for your patch ;) --- patch.19990714.txt.old Wed Jul 14 19:31:59 1999 +++ patch.19990714.txt Mon Jul 19 19:46:21 1999 @@ -38,7 +38,7 @@ #include <sys/param.h> #include <sys/socket.h> #include <netinet/in.h> -+#ifdef INET6 ++#if defined(INET6) && !defined(linux) +#include <netinet6/in6.h> +#endif #include <arpa/inet.h> @@ -371,7 +371,7 @@ #include <sys_defs.h> #include <sys/socket.h> #include <netinet/in.h> -+#ifdef INET6 ++#if defined(INET6) && !defined(linux) +#include <netinet6/in6.h> +#endif #include <arpa/inet.h> > > Marc > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- _____ __ ____ arkadiusz miśkiewicz [EMAIL PROTECTED] \ _ \\ \ \ \ tel. +48 604395925 sysadm: zsz2.starachowice.pl | __/| |__| | | http://www.pld.org.pl/ http://www.misiek.eu.org/ /__/ /____//____/ Polish Linux Distribution with IPv6 support

