* Sendmail $g macro strangeness
@ 1995-08-10 17:18 David C. Tuttle
0 siblings, 0 replies; only message in thread
From: David C. Tuttle @ 1995-08-10 17:18 UTC (permalink / raw)
To: tru64-unix-managers
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 <dctuttle@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@odin>
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" <dct@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@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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-08-10 17:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-08-10 17:18 Sendmail $g macro strangeness David C. Tuttle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox