Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!ames!dftsrv!jagmac2.gsfc.nasa.gov!jim From: jim@jagmac2.gsfc.nasa.gov (Jim Jagielski) Newsgroups: comp.unix.aux Subject: Sendmail (This is IT, I promise!) Message-ID: <2858@dftsrv.gsfc.nasa.gov> Date: 20 Jul 90 17:44:34 GMT Sender: news@dftsrv.gsfc.nasa.gov Reply-To: jim@jagmac2.gsfc.nasa.gov (Jim Jagielski) Distribution: na Organization: NASA Goddard Space Flight Center Lines: 22 I have figured out the sendmail "problem" of it not recognizing and using aliases in /etc/hosts. Basically, it's because res_search() doesn't do as exhaustive a search as does gethostbyname(). So what I've done is added sections that if res_search fails, try it again, but this time use the "official" hostname as returned by gethostbyname() in the nameserver query. This adds No time if the query is successful the 1st time. So this is IT! Done! Finished! (I've also added timezone capability to arpadate instead of that stupid "-0400" in the date... Be sure to read ./src/AUX_README and to change to BINARY mode when doing your anon-ftp "get"... -- ======================================================================= #include =:^) Jim Jagielski NASA/GSFC, Code 711.1 jim@jagmac2.gsfc.nasa.gov Greenbelt, MD 20771 "Kilimanjaro is a pretty tricky climb. Most of it's up, until you reach the very, very top, and then it tends to slope away rather sharply."