Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Sendmail $g problem on Digital Unix
@ 1995-08-15  4:00 David C. Tuttle
  1995-08-16  4:00 ` Brad Knowles
  0 siblings, 1 reply; 2+ messages in thread
From: David C. Tuttle @ 1995-08-15  4:00 UTC (permalink / raw)


I'm getting some weird behavior from our new mail server's sendmail.
(It's an DEC AlphaServer 1200 Model 5/250 running OSF/1 v3.2B)
Here's how the system's sendmail.cf defines some things:

   ##########################
   ###   Special macros   ###
   ##########################

   # UNIX header format
   DlFrom $g  $d
   # format of a total name
   Dq$?x$x $.<$g>

   #############################
   ###   Format of headers   ###
   #############################

   H?F?From: $q

But a typical header on our outgoing mail sometimes looks like this:

   From dct@odin.mda.uth.tmc.edu  Tue Aug 15 14:03:44 1995
   From: "David C. Tuttle" <dct@odin>

When I edit the Dq line to say "Dq$?x$x $.<$g.$N>" to force putting a
fully qualified hostname, it comes out:

   From: "David C. Tuttle" <dct@odin.mda.uth.tmc.edu.mda.uth.tmc.edu>

I remove the $N, and it goes back to "<dct@odin>".  All the other
headers look fine, including the "From " line which also uses $g.

I'm using DEC's mailsetup utility, then banging on sendmail.cf until
the headers are just right.  Unfortunately, it seems like I've got the
problem licked, only to have it recur a few days later (no reboot, no
restart of sendmail, it just happens).  Am I missing something here?
Is there any way to modify (or even just test) the $g macro?  Anyone
who has any information on this is welcome to reply to me.  Thanks.

-- 
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:  THAT'D CALL SERVITUDE



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Sendmail $g problem on Digital Unix
  1995-08-15  4:00 Sendmail $g problem on Digital Unix David C. Tuttle
@ 1995-08-16  4:00 ` Brad Knowles
  0 siblings, 0 replies; 2+ messages in thread
From: Brad Knowles @ 1995-08-16  4:00 UTC (permalink / raw)


In comp.mail.sendmail (article
<dct-1508951428160001@nidhogg.mda.uth.tmc.edu>), David C.  Tuttle
(dct@odin.mda.uth.tmc.edu) wrote:

> But a typical header on our outgoing mail sometimes looks like this:
> 
>    From dct@odin.mda.uth.tmc.edu  Tue Aug 15 14:03:44 1995
>    From: "David C. Tuttle" <dct@odin>
> 
> When I edit the Dq line to say "Dq$?x$x $.<$g.$N>" to force putting a
> fully qualified hostname, it comes out:
> 
>    From: "David C. Tuttle" <dct@odin.mda.uth.tmc.edu.mda.uth.tmc.edu>
> 
> I remove the $N, and it goes back to "<dct@odin>".  All the other
> headers look fine, including the "From " line which also uses $g.

    Generally speaking, the $g macro is something you shouldn't muck
around with.  It should be set internally by sendmail to be your
correct email address relative to that of the recipient.  If you want
to force all outbound mail to have a fully qualified hostname, then
you want to have a header definition that does not reference the $g
macro.


    Alternatively, if you were using version 8 sendmail, you could
just put "feature(ALLWAYS_ADD_DOMAIN)dnl" in your sendmail.mc file and
then reprocess that through m4 to generate your sendmail.cf.  Move the
file into place and kill and restart the sendmail daemon and you'd be
done -- no mucking around with the internal header definitions
required.

--
Brad Knowles, Internet Mail Systems Administrator     BKnowles@aol.net
comp.mail.sendmail FAQ Maintainer                         brad@his.com
                The comp.mail.sendmail FAQ is located at:
  <URL:ftp://rtfm.mit.edu/pub/usenet/news.answers/mail/sendmail-faq>

The views expressed herein are the property and responsibility of the
author, and unless stated otherwise, do not necessarily represent the
official position of of America Online, Inc., or anyone else.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-08-16  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-08-15  4:00 Sendmail $g problem on Digital Unix David C. Tuttle
1995-08-16  4:00 ` Brad Knowles

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox