Path: utzoo!attcan!uunet!clyde.concordia.ca!mcgill-vision!snorkelwacker!bloom-beacon!eru!luth!sunic!nuug!ulrik!ulrik.uio.no!obh From: obh@ulrik.uio.no (Ole Bj|rn Hessen) Newsgroups: comp.mail.sendmail Subject: resolv options when rewriting sender (inconsistencies). Message-ID: <1990Jul3.020637.28385@ulrik.uio.no> Date: 3 Jul 90 02:06:37 GMT Sender: news@ulrik.uio.no (USENET News System) Reply-To: obh@ulrik.uio.no (Ole Bj|rn Hessen) Organization: University of Oslo, Norway Lines: 30 In deliver.c, the following code is found: /* ** Call the mailer. */ if (ctladdr == NULL) ctladdr = &e->e_from; #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. 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). Anybody care to comment on the reality on this code?? Any why there's a lot of 'XXX's :-) Are people depending on this code?? I didn't really like this code, so I commented it out. Ole Bjorn. obh@gollum.uio.no