🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.mail.sendmail
2 messages
2 total messages Started by 7058 work Wed, 11 Jan 1989 04:31
Problems aliasing hostname to domain name
#3086
Author: 7058 work
Date: Wed, 11 Jan 1989 04:31
35 lines
1723 bytes
I have a problem with sendmail that I can't seem to resolve.

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.

Sending mail to either name results in sending to welch.jhu.edu, the
problem arises when the mail gets to the host welchvax. It barfs up the
address as unknown host:

	550 welch.jhu.edu.tcp... 550 Host unknown
	550 <johnj@welch.jhu.edu>... Host unknown

If I add the domain name to the welchvax.welch.jhu.edu line of the host
file, welchvax mailer is not willing to talk to itself:

	>>> HELO welchvax.welch.jhu.edu
	<<< 553 welchvax.welch.jhu.edu I refuse to talk to myself
	554 <johnj@welch.jhu.edu>... Service unavailable: Bad file number

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

I am not sure wether sendmail.cf is the problem or if there is some
other way to "alias" our domain name to our host name.

Any help would be greatly appreciated.

-johnj
(johnj@welchsun3.welch.jhu.edu; bitnet:johnj@jhuigf)
Re: Problems aliasing hostname to domain name
#3088
Author: Karl Kleinpaste
Date: Mon, 16 Jan 1989 18:05
23 lines
1419 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads