Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!rickert From: rickert@mp.cs.niu.edu (Neil Rickert) Newsgroups: comp.mail.sendmail Subject: Re: Local Configuration Error Message-ID: <1990Sep24.212433.774@mp.cs.niu.edu> Date: 24 Sep 90 21:24:33 GMT References: <2199@charon.cwi.nl> <1990Sep20.182739.29113@mp.cs.niu.edu> <2223@charon.cwi.nl> Organization: Northern Illinois University Lines: 43 In article <2223@charon.cwi.nl> piet@cwi.nl (Piet Beertema) writes: > > In both cases only the local MX record is discarded (but > marked) and all other MX records are stored and sorted. I stand corrected on this. The result is the equivalent. With the only MX record pointing to the local host, the action is to look up an A-record. With two or more MX records, but the best preference pointing to the localhost, you get a configuration error message. This still makes no sense. MX records with worse preference than the local host should always be ignored. They should not effect the way it works. It is still true that looking up an A-record is more useful than declaring a configuration error, as I pointed out in message <1990Sep21.161726.18266@mp.cs.niu.edu>. The patch I posted on Sept 18th achieves this effect. >As Brian Kantor pointed out, the match on localhost fails if for >one reason or another $w has not been set to the fully qualified >domain name of the local host (which can be useful if e.g. the >unqualified name is the uucp name). This can easily be corrected by There are 26 upper case letters of the alphabet available for macros, and most configuration files use only a small number of them. The lower case letters have internal predefined meanings. Why do you have to violate the internal predefined meaning, and cause yourself trouble when all that is necessary is something like ':g/$w/s//$W/g' in vi? >unqualified name is the uucp name). This can easily be corrected by >using `gethostbyname(localhost)->h_name' in the comparison instead Sendmail 5.64 already does this in its internal definition of $w. It is only because it is being incorrectly redefined that you have to do this again. -- =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= Neil W. Rickert, Computer Science Northern Illinois Univ. DeKalb, IL 60115. +1-815-753-6940