Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!romp!auschs!awdprime!sandino.austin.ibm.com!jeffe From: jeffe@sandino.austin.ibm.com (Peter Jeffe 512.823.4091) Newsgroups: comp.mail.sendmail Subject: Re: resolv options when rewriting sender (inconsistencies). Message-ID: <2703@awdprime.UUCP> Date: 9 Jul 90 23:04:13 GMT References: <1990Jul3.020637.28385@ulrik.uio.no> Sender: news@awdprime.UUCP Organization: IBM AWD, Austin, TX Lines: 42 In article <1990Jul3.020637.28385@ulrik.uio.no> obh@ulrik.uio.no (Ole Bj|rn Hessen) writes: >In deliver.c, the following code is found: >... >#ifdef NAMED_BIND > _res.options &= ~(RES_DEFNAMES | RES_DNSRCH); /* XXX */ >#endif > >The resolver options says that gethostbyname should not try to search >for hostname in local domain or parent domain, neither append local >domain if host is a single-component name. I figured it's because it assumes the nameserver will do the parent search for the resolver via recursion, so we shouldn't bother with it. As for appending the local domain name, is it assuming that either the nameserver or the config file will supply it? >The context of the code implies that the macro $[ host $] doesn't >expand to host.local-domain while rewriting sender addresses. > >Since this code only executes while delivering a letter, you >may get a bit surprised and baffled by this inconsistency between >mail delivery mode and sendmail test mode (-bt). There definitely may be a difference in behavior between the parsing canonicalization and the delivery hostname lookup. I don't see why the flags shouldn't be disabled throughout execution, and just let the nameserver handle the whole thing in all cases. >Anybody care to comment on the reality on this code?? Any why there's >a lot of 'XXX's :-) Ditto. (Are you out there Eric?) ------------------------------------------------------------------------------- Peter Jeffe ...uunet!cs.utexas.edu!ibmchs!auschs!sandino.austin.ibm.com!jeffe first they want a disclaimer, then they make you pee in a jar, then they come for you in the night