From: brad@azathoth.ops.aol.com (Brad Knowles)
Subject: Re: Sendmail $g problem on Digital Unix
Date: 1995/08/16 [thread overview]
Message-ID: <40t97a$jim@wcnews01.ops.aol.com> (raw)
In-Reply-To: dct-1508951428160001@nidhogg.mda.uth.tmc.edu
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.
prev parent reply other threads:[~1995-08-16 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-08-15 4:00 Sendmail $g problem on Digital Unix David C. Tuttle
1995-08-16 4:00 ` Brad Knowles [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox