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_at_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 <dctuttle_at_basil> 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" <dct_at_odin>
Message-Id: <9508101702.AA00312_at_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" <dct_at_odin.mda.uth.tmc.edu.mda.uth.tmc.edu>
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_at_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
Received on Thu Aug 10 1995 - 19:37:07 NZST