Date: Fri, 4 Aug 1995 02:27:13 +0000 () From: Leo Papandreou <leo@lisa.rur.com> To: Rob Snow <rsnow@txdirect.net> Cc: questions@freebsd.org Subject: Re: Only domain in sendmail 'from'. How? Message-ID: <Pine.BSF.3.91.950804012323.7266D-100000@lisa.rur.com> In-Reply-To: <Pine.BSF.3.91.950803233946.516B-100000@oasis>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 3 Aug 1995, Rob Snow wrote: > On Thu, 3 Aug 1995, Randy Berndt wrote: > > > Right now, sendmail uses the format "Randy Berndt > > <rberndt@kilgour.nething.com>" as the From format in my mail (on a new net I > > am setting up). I would like it to read "Randy Berndt <rberndt@nething.com>" > > 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 > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.950804012323.7266D-100000>