Path: utzoo!attcan!utgpu!watmath!gamiddleton
From: gamiddleton@watmath.waterloo.edu (Guy Middleton)
Newsgroups: comp.mail.sendmail
Subject: ruleset zero questions, where system name == domain name
Message-ID: <28431@watmath.waterloo.edu>
Date: 17 Aug 89 16:46:50 GMT
Reply-To: gamiddleton@watmath.waterloo.edu (Guy Middleton)
Organization: University of Waterloo [MFCF/ICR]
Lines: 17

We have the following in our sendmail.cf file, in ruleset zero:

# strip local stuff
R$*<$+$=w>$*			$1<$2>$4	thishost
R$*<$+uwaterloo.ca>$*		$:$>7$1<$2>$3	thishost again
R<@>:$+				$@$>8$1		strip null route, retry
R$+<@>				$@$>8$1		strip null addr, retry
R$*<$*$=w>$*			$@$>8$1$2$4

It all works fine, except when run on a machine whose name is the same as a
local subdomain.  After going through these rules, mail from vlsi.waterloo.edu
to jquser@xxx.vlsi.waterloo.edu ends up being sent to "jquser@xxx.", which
isn't what I want.  Has anybody else encountered a similar problem?  How do
you get around this?

 -Guy Middleton, University of Waterloo		gamiddleton@watmath.waterloo.edu
		(+1 519 885 1211 x3472)		gamiddleton@watmath.uwaterloo.ca