stanonik@nprdc.navy.mil (Ron Stanonik) (03/29/89)
Hello, We're trying to install a couple of sun4/280's running sunos 4.0.1. I'm customing the sendmail.cf file and noticed that the $m macro isn't getting set. $m seems to be something new (don't see it in 3.5), supposedly it's the domainname. This could be useful, if it worked. What should sendmail be setting it to? The yp domainname, or the internet domainname? On our sun4s, the domainname command returns our yp domainname, trcf. We're not running named on the sun4s (they get named service from our gateway machine), but the sun4s have a resolv.conf which sets our internet domain, nprdc.navy.mil. $m isn't being set to anything. Any ideas? Is this a feature that hasn't been implemented yet; ie, go back to hardwiring it into sendmail.cf? Thanks, Ron Stanonik stanonik@nprdc.navy.mil
sob@bcm.tmc.edu (Stan Barber) (04/22/89)
$m is not defined in the 5.61 sendmail sources as best I can determine. Probably a Sun change is my guess. STAN Stan internet: sob@bcm.tmc.edu Baylor College of Medicine Olan uucp: {rice,killer,hoptoad}!academ!sob Barber Opinions expressed are only mine.
guy@uunet.uu.net (Guy Harris) (04/22/89)
>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.