Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: auspex!guy@uunet.uu.net (Guy Harris) Newsgroups: comp.sys.sun Subject: Re: sunos 4.0.1, $m in sendmail.cf Keywords: Software Message-ID: <1332@auspex.UUCP> Date: 22 Apr 89 07:28:03 GMT References: <8903091703.AA16757@nprdc.arpa> Sender: usenet@rice.edu Organization: Auspex Systems, Santa Clara Lines: 19 Approved: Sun-Spots@rice.edu Original-Date: 30 Mar 89 20:52:11 GMT X-Sun-Spots-Digest: Volume 7, Issue 239, message 2 of 21 >What should sendmail be setting it to? The yp domainname, or the internet >domainname? "sendmail" sets it from the YP domainname. It does so *after* it reads in the configuration file, so you can't override it in the configuration file, alas. The rules it appears to use are: 1) do a "getomainname" call; 2) if the first character of the result is "+", replace it with "."; 3) Search for the first "." in the result: 4a) if it's found, set "$m" to the part of the string that follows the first ".", and set the class "m" to the same thing; 4b) if it's not found, leave "$m" and the class "m" alone.