From owner-freebsd-current Thu Mar 2 4: 5:26 2000 Delivered-To: freebsd-current@freebsd.org Received: from fgwmail6.fujitsu.co.jp (fgwmail6.fujitsu.co.jp [192.51.44.36]) by hub.freebsd.org (Postfix) with ESMTP id 6AF2037BB9A for ; Thu, 2 Mar 2000 04:05:23 -0800 (PST) (envelope-from shin@nd.net.fujitsu.co.jp) Received: from m4.gw.fujitsu.co.jp by fgwmail6.fujitsu.co.jp (8.9.3/3.7W-MX0002-Fujitsu Gateway) id VAA03643; Thu, 2 Mar 2000 21:05:22 +0900 (JST) (envelope-from shin@nd.net.fujitsu.co.jp) Received: from chisato.nd.net.fujitsu.co.jp by m4.gw.fujitsu.co.jp (8.9.3/3.7W-0002-Fujitsu Domain Master) id VAA09554; Thu, 2 Mar 2000 21:05:21 +0900 (JST) Received: from localhost (dhcp7194.nd.net.fujitsu.co.jp [10.18.7.194]) by chisato.nd.net.fujitsu.co.jp (8.8.5+2.7Wbeta5/3.3W8chisato-970826) with ESMTP id VAA10564; Thu, 2 Mar 2000 21:05:20 +0900 (JST) To: mzaki@e-mail.ne.jp Cc: freebsd-current@FreeBSD.ORG Subject: Re: IPv6 trouble In-Reply-To: <86og8xehys.wl@tkc.att.ne.jp> References: <86og8xehys.wl@tkc.att.ne.jp> X-Mailer: Mew version 1.94 on Emacs 20.4 / Mule 4.0 (HANANOEN) X-Prom-Mew: Prom-Mew 1.93.4 (procmail reader for Mew) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000302210613S.shin@nd.net.fujitsu.co.jp> Date: Thu, 02 Mar 2000 21:06:13 +0900 From: Yoshinobu Inoue X-Dispatcher: imput version 990905(IM130) Lines: 74 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I suspect, > > * fetchmail inquire "localhost" to resolver > * resolver returns "::1" because there is the entry in /etc/hosts > * fetchmail try to connect port 25 on "::1" > * sendmail listen on only port 25 of inet4, not of inet6 > * trial failes, and fetchmail giving up > > Then, I commented out "::1" from /etc/hosts, works fine. > > > By the way, WHO is responsible for this? > fetchmail? resolver? my setting? It seems to be fetchmail bug. It should try IPv4 if IPv6 access is failed. Could you please copy this patches as your ports/mail/fetchmail/patches/patch-ak file, and rebuild fetchmail, and try again? Sorry for your problem. Yoshinobu Inoue *** socket.c~ Tue Feb 8 08:44:01 2000 --- socket.c Thu Mar 2 21:00:00 2000 *************** *** 126,131 **** --- 126,133 ---- #if NET_SECURITY void *request = NULL; int requestlen; + #else /* NET_SECURITY */ + struct addrinfo *ai0; #endif /* NET_SECURITY */ #ifdef HAVE_SOCKETPAIR *************** *** 156,171 **** #ifdef HAVE_INNER_CONNECT i = inner_connect(ai, NULL, 0, NULL, NULL, "fetchmail", NULL); #else i = socket(ai->ai_family, ai->ai_socktype, 0); ! if (i < 0) { ! freeaddrinfo(ai); ! return -1; ! } if (connect(i, (struct sockaddr *) ai->ai_addr, ai->ai_addrlen) < 0) { - freeaddrinfo(ai); close(i); /* don't use SockClose, no traffic yet */ ! return -1; } #endif #endif /* NET_SECURITY */ --- 158,174 ---- #ifdef HAVE_INNER_CONNECT i = inner_connect(ai, NULL, 0, NULL, NULL, "fetchmail", NULL); #else + for (ai0 = ai; ai != NULL; ai = ai->ai_next) + { i = socket(ai->ai_family, ai->ai_socktype, 0); ! if (i < 0) ! continue; if (connect(i, (struct sockaddr *) ai->ai_addr, ai->ai_addrlen) < 0) { close(i); /* don't use SockClose, no traffic yet */ ! continue; } + } + ai = ai0; #endif #endif /* NET_SECURITY */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message