From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,89b7c98293ba183a X-Google-Attributes: gidfee84,public X-Google-Thread: 10de99,89b7c98293ba183a X-Google-Attributes: gid10de99,public From: brad@azathoth.ops.aol.com (Brad Knowles) Subject: Re: Sendmail $g problem on Digital Unix Date: 1995/08/16 Message-ID: <40t97a$jim@wcnews01.ops.aol.com>#1/1 X-Deja-AN: 108281696 references: followup-to: comp.unix.osf.osf1,comp.mail.sendmail organization: America Online reply-to: BKnowles@aol.net newsgroups: comp.unix.osf.osf1,comp.mail.sendmail In comp.mail.sendmail (article ), 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" > > 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" > > I remove the $N, and it goes back to "". 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: 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.