🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.sendmail
Article #3151

Re: UK-Sendmail-2.1 Wildcard Problem

#3151
From: Jem Taylor
Date: Fri, 03 Feb 1989 16:19
67 lines
2734 bytes
	
	For the channel tables all I largely want to do is pass and domain name
	beginning with uk. straight onto unix-niftp.  To do this I have a
	file called 'local-janet.chn' which is configured as a janet
	channel file in which I have the line:
	
	uk.%s	uk.%s
	
	There is another file called janet.chn which holds all the other relaying
	information.

That's just what one should do - good.
	
	When run in test mode I can see ruleset 16 gradually stripping the address
	down until only 'uk' is left.  I then get the 'Domain Unknown' error.
	
	*What am I doing wrong?*

	And here is Ruleset 16:
	S16
	R$+@$+			$:$>17$1@$2		initial routing
	R<$+>$+			$@<$1>$2		success, return triple
	
	#  initial match failed, retry with successively higher level domains
	R<$+@$+>		$:<$1%$2@$2>		u@a.b.c -> u%a.b.c@a.b.c
	R<$+@$-.$+>		$>17$1@$3		retry routing
	R<$+>$+			$@<$1>$2		success, return triple
	
	#  match failed, attempt to match with "general" rules (wildcards);
	#  if this fails then try matching top level domain to find relay domain
	R<$+@$->		$:$>4$1			restore original address
	
	R$+@$+.$=N		$@$>16$1%$2.$3@ean.ac.uk
	R$+@$+.earn		$@$>16$1%$2.earn@earn-relay.ac.uk
	R$+@$+.$=O		$@$>16$1%$2.$3@nss.cs.ucl.ac.uk
	R$+@$+.fr		$@$>16$1%$2.fr@cs.ucl.ac.uk
	R$+@$+.gb		$@$>16$1%$2.gb@cs.ucl.ac.uk
	R$+@$+.bitnet		$@$>16$1%$2.bitnet@earn-relay.ac.uk
	R$+@$+.uk		$@$>16$1%$2.uk@uk
						^
I don't like the look of this. I suspect that you have put 

uk	uk

in your top.chn file, which should have a relay site on the right. We have

uk	uk.ac.ucl.cs

in the top.chn, so that unknown uk domains (ie. not uk.ac uk.co uk.mod etc)
which are probably new X.400 systems are passed to an X.400 capable system for
interpretation.

	R$+@$+.uucp		$@$>16$1%$2.uucp@ukc.ac.uk
	R$+@$+		$:$>9$1@$2		convert to NRS style
	R$+@uk.$+		$@<$1@uk.$2>uk.$2.janet

This line comes from local-janet.chn ... and looks fine. The problem is that
the top.chn entries above are stealing from you. Try re-arranging your
config.site file so that top.chn is referenced after local-janet.chn .
The documentation forgets to mention that the order of config.site file
entries is significant.

	R$+@$+		$:$>9$1@$2		convert back to 822 style
	
	
-Jem.	
Technical Details
Message-ID: <5711.8902031619@paama.cs.glasgow.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!ucsd!ucsdhub!hp-sdd!ncr-sd!ncrlnk!uunet!mcvax!ukc!etive!glasgow!taylor

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!ucsd!ucsdhub!hp-sdd!ncr-sd!ncrlnk!uunet!mcvax!ukc!etive!glasgow!taylor
From: taylor@cs.glasgow.ac.uk (Jem Taylor)
Newsgroups: comp.mail.sendmail,mail.uk-sendmail-workers
Subject: Re:  UK-Sendmail-2.1 Wildcard Problem
Message-ID: <5711.8902031619@paama.cs.glasgow.ac.uk>
Date: 3 Feb 89 16:19:09 GMT
Sender: daemon@cs.glasgow.ac.uk
Lines: 67
X-Mailer: mail-news 2.0.4