Newsgroups: comp.mail.sendmail Path: utzoo!utgpu!watserv1!maytag!gamiddle From: gamiddle@maytag.waterloo.edu (Guy Middleton) Subject: Re: LOCALDOMAIN and $w Message-ID: <1990Jul25.162735.2148@maytag.waterloo.edu> Organization: University of Waterloo Software Commando Squad References: <1990Jul20.203238.12791@maytag.waterloo.edu> <1990Jul22.165315.25316@maytag.waterloo.edu> Date: Wed, 25 Jul 90 16:27:35 GMT Lines: 20 In article Anselmo-Ed@cs.yale.edu (Ed Anselmo) writes: > Try something like: > > # All nicknames for this host > Fw/usr/local/lib/net_database/this_host %s This works, but I still have local state. Generating /usr/local/lib/net_database/this_host is really no different from putting the names in the file -- we still have a unique configuration on each machine, and need some software to generate it. For maximum portability, the .cf file (and any files it references) should not have to be changed when copied to a new machine. If classes could be defined by making shell calls, I would do this: Cw!echo `hostname`.waterloo.edu `hostname`.uwaterloo.ca Or maybe I could define a new macro that contains all the local domains, and the code in sendmail's startup would use it to assign $=w.