Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ncar!tank!oddjob!matt From: matt@oddjob.uchicago.edu (Matt Crawford) Newsgroups: comp.mail.sendmail Subject: Re: localhost!user Message-ID: <1835@tank.uchicago.edu> Date: 14 Feb 89 16:06:32 GMT References: <1377@ncar.ucar.edu> <1398@ncar.ucar.edu> Sender: news@tank.uchicago.edu Reply-To: matt@oddjob.uchicago.edu (Matt Crawford) Organization: Up against the wall of SCIENCE Lines: 18 In-reply-to: woods@ncar.ucar.edu (Greg Woods) Regarding mapping short hostnames to full names with $[stuff$] or some variation thereof: The code for getmxrr() is not relevant. $[stuff$] is evaluated in parseaddr.c:rewrite() by invoking daemon.c:maphostname(). If the "stuff" is not a bracketed numeric address, then domain.c:getcanonname() is called. In 5.59 this always did a lookup for CNAME records. If there is no CNAME for "stuff", no substitution was done. In 5.61, if you build sendmail with NO_WILDCARD_MX defined, it will look for ANY type of domain system RR for the given stuff. This will do what you want. A special flag is needed to enable or disable this because some domains have an MX record for *.dom.ain, which would cause $[stuff$] to expand to stuff.dom.ain for all values of stuff which have no other data, defeating your purpose. ________________________________________________________ Matt Crawford matt@oddjob.uchicago.edu