🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.sendmail
Article #3189

Re: localhost!user

#3189
From: Greg Woods
Date: Mon, 13 Feb 1989 23:36
41 lines
2227 bytes
In article <KARL.89Feb9094347@triceratops.cis.ohio-state.edu> karl@triceratops.cis.ohio-state.edu (Karl Kleinpaste) writes:

>The problem is probably that there are 2 lines in getmxrr() (discussed
>here recently) which disable search-tree resolution.  The two lines
>which disable the search:
>
>        _res.options &= ~(RES_DEFNAMES | RES_DNSRCH);           /* XXX */
>	[...do lookups...]
>        _res.options |= RES_DEFNAMES | RES_DNSRCH;      /* XXX */
>
>Hence, resolutions requesting $[$1$] are guaranteed to fail in all
>contexts.

   I commented out these lines, but the lookups still fail. I have tried

R$-!$-		$[$1]!$2

R$-!$-		$[$1.]!$2

R$-!$-		$[$1.UCAR.EDU.$]!$2

In the first case, I look to see if it got converted to $1.UCAR.EDU, and
in the second two cases I look to see if the trailing period got stripped.
In all cases, even after commenting out the above lines and recompiling,
the name server queries still always fail with errno=0, h_errno=4 (NO_DATA
of requested type). With sendmail5.58 on the older Sun system, all three of
these methods work as expected.

>Just out of curiosity, why are you supporting !ish addresses for local
>network hosts?

    Because some outside users with UUCP-only systems still want to mail to 
ncar!localhost!user. Some of our other local net sites also have independent
UUCP links, so I do need a general way to do this, and I need one that
does not depend on having a list of local hosts within the cf file.
It is tough to get them to switch to ncar!localhost.ucar.edu!user or better 
yet, a mail configuration that can deal with domain addresses in a sensible 
way (which would include just forwarding them to us for delivery, and some 
local UUCP sites are in fact doing just that).

--Greg
Technical Details
Message-ID: <1398@ncar.ucar.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!woods
References: <1377@ncar.ucar.edu> <KARL.89Feb9094347@triceratops.cis.ohio-state.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!woods
From: woods@ncar.ucar.edu (Greg Woods)
Newsgroups: comp.mail.sendmail
Subject: Re: localhost!user
Message-ID: <1398@ncar.ucar.edu>
Date: 13 Feb 89 23:36:44 GMT
References: <1377@ncar.ucar.edu> <KARL.89Feb9094347@triceratops.cis.ohio-state.edu>
Reply-To: woods@handies.UCAR.EDU (Greg Woods)
Organization: Scientific Computing Division/NCAR, Boulder CO
Lines: 41