From owner-freebsd-bugs Wed Jan 8 9:20: 9 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4123537B401 for ; Wed, 8 Jan 2003 09:20:05 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F64143EDC for ; Wed, 8 Jan 2003 09:20:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h08HK3NS081645 for ; Wed, 8 Jan 2003 09:20:03 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h08HK3TC081644; Wed, 8 Jan 2003 09:20:03 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DDA537B405 for ; Wed, 8 Jan 2003 09:13:37 -0800 (PST) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id A273843EDC for ; Wed, 8 Jan 2003 09:13:36 -0800 (PST) (envelope-from swear@attbi.com) Received: from localhost.localdomain ([12.242.158.67]) by sccrmhc01.attbi.com (sccrmhc01) with ESMTP id <2003010817133500100rbdn4e>; Wed, 8 Jan 2003 17:13:35 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.12.6/8.12.6) with ESMTP id h08HGVBs082918 for ; Wed, 8 Jan 2003 09:16:31 -0800 (PST) (envelope-from swear@attbi.com) Received: (from jojo@localhost) by localhost.localdomain (8.12.6/8.12.6/Submit) id h08HGQAB082917; Wed, 8 Jan 2003 09:16:26 -0800 (PST) (envelope-from swear@attbi.com) Message-Id: <2rbs2rk1ee.s2r@localhost.localdomain> Date: 08 Jan 2003 09:16:25 -0800 From: "Gary W. Swearingen" Reply-To: swear@attbi.com To: FreeBSD-gnats-submit@FreeBSD.org Subject: conf/46873: sendmail is not well supported by DNS in default 5.0-RC2 install Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 46873 >Category: conf >Synopsis: sendmail is not well supported by DNS in default 5.0-RC2 install >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 08 09:20:03 PST 2003 >Closed-Date: >Last-Modified: >Originator: Gary W. Swearingen >Release: FreeBSD 5.0-CURRENT i386 >Organization: none >Environment: FreeBSD localhost.localdomain 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Mon Dec 30 17:04:36 PST 2002 root@localhost.localdomain:/usr/obj/usr/src/sys/GENERIC i386 ================ >Description: With a presumably common (for home desktops) sendmail config, my MUA starts a sendmail process to send my message to the "sm-mta" sendmail daemon, but the MUA-started sendmail hangs up for about 80 seconds, apparently because it is trying to do DNS look up for "localhost" using the default IPv6, but the resolver doesn't know how to do reverse lookup and the standard FreeBSD 5.0 install doesn't have "named" running to do the job either. (I fixed MY problem by telling sendmail to use '[127.0.0.1]' in the "msp" feature, instead of the default.) More details: I cvsup'ed 5.0-CURRENT 30'dec'02 and rebuilt world/kernel & mergedmastered. Then, with sendmail_enable="NO", I rebuilt sendmail's config files (sendmail.cf and submit.cf) (using "smart host", BTW). After trying lots of different *.mc changes, I turned on lots of logging and got this log from the MUA-started sendmail (a child of that, really): Jan 3 13:42:41 localhost sendmail[63607]: h03Lgf6o063607: assigned id Jan 3 13:42:41 localhost sendmail[63607]: NOQUEUE: connect from jojo@localhost Jan 3 13:42:41 localhost sendmail[63607]: h03Lgf6p063607: assigned id Jan 3 13:42:41 localhost sendmail[63607]: h03Lgf6p063607: from=swear@attbi.com, size=312, class=0, nrcpts=1, msgid=, relay=jojo@localhost Jan 3 13:42:41 localhost sendmail[63607]: h03Lgf6p063607: queueup ./qfh03Lgf6p063607 Jan 3 13:42:41 localhost sendmail[63611]: h03Lgf6p063607: disconnect level 2 Jan 3 13:42:41 localhost sendmail[63607]: poststats: /var/spool/clientmqueue/sm-client.st: No such file or directory Jan 3 13:42:41 localhost sendmail[63607]: NOQUEUE: finis, pid=63607 Jan 3 13:42:41 localhost sendmail[63611]: h03Lgf6p063607: in background, pid=63611 Jan 3 13:42:41 localhost sendmail[63611]: h03Lgf6p063607: sendenvelope, flags=0x4605042 Jan 3 13:43:56 localhost sendmail[63611]: h03Lgf6p063607: makeconnection (localhost.localdomain. [IPv6:::1]) failed: Operation timed out with localhost.localdomain. Jan 3 13:43:56 localhost sendmail[63611]: h03Lgf6p063607: SMTP outgoing connect on localhost Jan 3 13:44:01 localhost sm-mta[63644]: h03Li1n2063644: assigned id Jan 3 13:44:01 localhost sm-mta[63644]: NOQUEUE: connect from localhost [127.0.0.1] The mail quickly thereafter was delivered to my ISP. "ping localhost" shows "127.0.0.1" being pinged and "ping6 localhost" shows "::1" being pinged, so forward looks OK, but I don't know how to test reverse lookup for "127.0.0.1" or "::1" as "nslookup" seems to mess up when the default DNS server is my ISP and "nslookup - localhost" gives: *** Can't find server name for address ::1: No response from server ================ >How-To-Repeat: n/a ================ >Fix: Maybe one of these: 1) Change the resolver to handle localhost the same for IPv6 as it does for IPv4. (I didn't have the problem in 4.7 with my custom non-IPv6 kernel.) 2) Change the default FreeBSD intallation config so that a caching-only DNS server is run by default, or run it only if sendmail is enabled. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message