Date: 08 Jan 2003 09:16:25 -0800 From: "Gary W. Swearingen" <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 Message-ID: <2rbs2rk1ee.s2r@localhost.localdomain>
next in thread | raw e-mail | index | archive | help
>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=<mhn0mhx63z.0mh@localhost.localdomain>, 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2rbs2rk1ee.s2r>