🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.sendmail
Article #3192

Re: localhost!user

#3192
From: Matt Crawford
Date: Tue, 14 Feb 1989 16:06
18 lines
1488 bytes
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
Technical Details
Message-ID: <1835@tank.uchicago.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ncar!tank!oddjob!matt
References: <1377@ncar.ucar.edu> <KARL.89Feb9094347@triceratops.cis.ohio-state.edu> <1398@ncar.ucar.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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> <KARL.89Feb9094347@triceratops.cis.ohio-state.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)