From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075322406520.tru64-unix-managers.marc@archive.invalid> From: "David C. Tuttle" Date: Thu, 10 Aug 1995 17:18:28 +0000 To: tru64-unix-managers Subject: Sendmail $g macro strangeness X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075322406520 I'm having little luck trying to get our sendmail to generate a correct "From:" line in the headers. My problem is with the $g macro, which is apparently something I can't mess with. Here are some (hopefully) relevant lines from the sendmail.cf (which I've altered as little as possible after running "mailsetup"): # parent domain DPtmc.edu # my domain DNmda.uth.tmc.edu # name exported on external internet mail DWodin.mda.uth.tmc.edu # my official hostname Dj$W [<- Changed from "Dj$w" to always generate full hostname] [ "From:" line is unaffected by this, right? ] # # aliases at the $P level -- we think we are authoritative for these # Cdmda ########################## ### Special macros ### ########################## # UNIX header format DlFrom $g $d # format of a total name Dq$?x$x $.<$g> ############################# ### Format of headers ### ############################# H?F?From: $q So now when I send out a mail message to the outside world, the recipient gets: From dct@odin.mda.uth.tmc.edu Thu Aug 10 12:06:57 1995 Received: from odin.mda.uth.tmc.edu by stthom.edu via SMTP (...) for id MAA16964; Thu, 10 Aug 1995 12:06:56 -0500 Received: by odin.mda.uth.tmc.edu; (5.65/1.1.8.2/09Aug95-0446PM) id AA00312; Thu, 10 Aug 1995 12:02:35 -0500 From: "David C. Tuttle" Message-Id: <9508101702.AA00312@odin.mda.uth.tmc.edu> In the first line $g gives the fully qualifies hostname, but the From: line, where $q fills in the address inside the <> with the contents of $g, I get the short version. To make it even stranger, when I change: # format of a total name Dq$?x$x $.<$g.$N> [ adding $N to force domain name onto address ] I get From: "David C. Tuttle" So $g refuses to cooperate. Does anyone have any idea what I can do to get around this? Is perhaps a rewriting rule biting me (I abandon all hope when I enter there :-)? Any suggestions greatly appreciated. -- David C. Tuttle, Biomathematics ----> dct@odin.mda.uth.tmc.edu <---- University of Texas M.D. Anderson Cancer Center +1 713 792 2606 Mail Stop 237, 1515 Holcombe Boulevard, Houston, TX 77030-4096 USA Today's anagram of "David Charles Tuttle" is: ICES THAT DULL ADVERT