Newsgroups: comp.mail.sendmail
Path: utzoo!utgpu!watserv1!maytag!gamiddle
From: gamiddle@maytag.waterloo.edu (Guy Middleton)
Subject: LOCALDOMAIN and $w
Message-ID: <1990Jul20.203238.12791@maytag.waterloo.edu>
Organization: University of Waterloo Software Commando Squad
Date: Fri, 20 Jul 90 20:32:38 GMT
Lines: 19

We have a problem with $LOCALDOMAIN, which is used by the DNS resolver
routines -- lookups will be relative to it, instead of the host's real domain.

We have two equivalent mail domains (waterloo.edu and uwaterloo.ca), but $w is
only set to one of these by sendmail.  If a user has LOCALDOMAIN set to the
other one, local mail is bounced, because the match against $=w fails.

So, I could do one of three things:

1.	hack sendmail.cf to explicitly check against both domains

2.	somehow set $=w to both hostnames

3.	disable LOCALDOMAIN

So, what do people think?  3 is easiest, but 2 is probably the most elegant.
I don't like 1, because there is no foolproof way to generate both names to
test against.  Does anybody actually use LOCALDOMAIN and expect it to work for
mail?  I'm pretty sure nobody here does.
