From owner-freebsd-questions Fri Aug 4 00:01:27 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id AAA24024 for questions-outgoing; Fri, 4 Aug 1995 00:01:27 -0700 Received: from lisa.rur.com (G338.257.InterLink.NET [199.202.234.53]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id AAA24018 for ; Fri, 4 Aug 1995 00:01:24 -0700 Received: (from leo@localhost) by lisa.rur.com (8.6.11/8.6.9) id CAA07451; Fri, 4 Aug 1995 02:27:13 GMT Date: Fri, 4 Aug 1995 02:27:13 +0000 () From: Leo Papandreou To: Rob Snow cc: questions@freebsd.org Subject: Re: Only domain in sendmail 'from'. How? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: questions-owner@freebsd.org Precedence: bulk On Thu, 3 Aug 1995, Rob Snow wrote: > On Thu, 3 Aug 1995, Randy Berndt wrote: > > > Right now, sendmail uses the format "Randy Berndt > > " as the From format in my mail (on a new net I > > am setting up). I would like it to read "Randy Berndt " > > instead. I looked at the rules and went totally cross-eyed. > > Tell me about it. sendmail must be why unix admins get the big bucks. I was under the very same gun as you and after a cursory reading of the rules I said to myself, "myself...DOH!" So I slacked out and started pushing some of the more obvious buttons hoping something would work. Something clicked. > > Can anyone tell me (step by step, please) how to set this? > Well if you're setting up your own net then consider using a single machine as the mail hub. So lets say machine A is the mail hub. Then you'll need an MX record: yourDomain.suffix. MX 10 machineA.yourDomain.suffix (If your not running your own DNS then call up your provider and ask him/her to add one for you.) In machineA's sendmail.cf file change the line Cwlocalhost under the local info section to read ################### # local info # ################### CwyourDomain.suffix Now you need'nt touch any sendmail.cf on any other host. Mail destined for user1@machineA.dom or user2@machineB.dom or user3@machineC.dom, etc will be delivered correctly even if addressed as user1@dom, user2@dom, user3@dom. A mail hub is a flexible solution. Do it once and its sendmail schmendmail, /etc/aliases all the way :-) You know, in retrospect, sendmail is pretty much child's play. I should be getting bigger bucks. I'm not 100% sure either, BTW, but it seemed to do the trick. > I'm not 100% sure but I believe that all you need to do is change the line: > > # who I masquerade as (null for no masquerading) > DM > > to > > DMnething.com > > This has worked fine for me I believe (look at the return line, I'm > really rsnow@oasis.txdirect.net) > > > --- > Rob Snow > rsnow@txdirect.net > >