Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!tut.cis.ohio-state.edu!triceratops.cis.ohio-state.edu!karl From: karl@triceratops.cis.ohio-state.edu (Karl Kleinpaste) Newsgroups: comp.mail.sendmail Subject: Re: Problems aliasing hostname to domain name Message-ID: Date: 16 Jan 89 18:05:22 GMT References: <475@aplcen.apl.jhu.edu> Sender: news@tut.cis.ohio-state.edu Distribution: na Organization: OSU Lines: 23 In-reply-to: johnj@aplcen.apl.jhu.edu's message of 11 Jan 89 04:31:11 GMT johnj@aplcen.apl.jhu.edu (7058 work) writes: The trouble is that a few weeks ago, our host was added to a an internet name server. Our primary host we wanted to be able to address as either welchvax.welch.jhu.edu or by our domain name, welch.jhu.edu. ... Our sendmail file has lines as follows that I thought would help to resolve its hostname before conecting to itself (both in S0 before tcp stuff): R$-<@welchvax.welch.jhu.edu> $1 R$-<@welch.jhu.edu> $1 Given DDwelch.jhu.edu and $j defined appropriately, I suggest, in S0: R$+<@$D> $#local$:$1 R$+<@$j> $#local$:$1 or, if you generalize all hostnames to the domain name as we do: R$+<@$*$D> $#local$:$1 Forget the silly hostname stripping and re-running through S0; once you've detected local mail, deliver it immediately and be done with it. --Karl