From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Fullmer Subject: Re: Here's an easy one Date: Thu, 20 Mar 2003 07:06:16 -0700 Sender: linux-admin-owner@vger.kernel.org Message-ID: References: <3E79C842.86E68C18@transparency.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3E79C842.86E68C18@transparency.org> List-Id: Content-Type: text/plain; charset="us-ascii" To: Andrew Kelly , Linux Admin It sounds to me like you would want to masquerade your domain in your sendmail configuration. If you add these lines to your mc file: MASQUERADE_AS(domain.name)dnl FEATURE(`masquerade_envelope')dnl And build a new sendmail.cf file, that should do it. The thing to remember here then is that ALL e-mail being sent by sendmail on this host will send mail as "@domain.name". That sounds like what you want, though. Hope this helps. - Jon on 3/20/03 6:55 AM, Andrew Kelly at akelly@transparency.org wrote: > > ..or at least I assume it is and I just can't thinks straight > with this head cold. > > Hi all; quick hostname question: > > When mail is sent to a local user (mail -s "bla" user < file) > it's passed to the MTA as user@localhost. The same is passed > as the From address when the vacation program is run by user. > > So where does the localhost expansion take place? > > My problem here is that I'm getting > user@host.domain.name > when what I want is > user@domain.name > > I'm flying RH 7.2 and Sendmail 8.12.5 (patched) on this > particular box, by the way. > > Sendmail -d0.1 -bt ============ SYSTEM IDENTITY (after readcf) ============ > (short domain name) $w = host > (canonical domain name) $j = host.domain.name > (subdomain name) $m = domain.name > (node name) $k = host > ======================================================== > > which I keep reading as exactly what I want. > > When I send mail from an application, be it Pine from a > console or Netscape from a GUI, everything is as I'd hope. > My mail goes off as me@domain.name > If I send it from the command line with, say, > mail -s "blaaaa" address < file, or > senmail user me@host.domain.name > > In my sendmail.cf > host.domain.name is listed nowhere, > only, domain.name > > I'm choking on this one and I know I shouldn't be. It's > like wondering why $var = 1 is not doing what it should > and 2 days of debugging hasn't helped and it only takes > a fresh pair of eyes 5 seconds to see that you really > meant $var == 1 > > ...making me crazy. > > > Can anybody hold my hand? > > Andrew > - > To unsubscribe from this list: send the line "unsubscribe linux-admin" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >