Wow!! What a response!! Thank you all for your suggestions with this.
My original message is/was:
>
> I want to have my address rewritten on email being sent out. The way
> it gets sent out is "gpr@roadmap.proteon.com". I want it to be rewritten
> as "gpr@proteon.com". I've looked at /etc/sendmail.cf and read through
> the SunOS sys admin book (and Answerbook) but can't get the grasp
> of the sendmail file.
>
> Can anyone tell me what I need to change in my .cf file to have my
> "From" get rewritten to strip out the "roadmap" part of the address
> and just have it be "gpr@proteon.com"? The way it is now (with the
> "roadmap" in the addr.) mail replied to won't work because of the
> restrictions that our network people have put on our gateway to the
> internet. It'll go off into never-neverland. But I'd like to be able
> to send mail directly out from my machine (which we can do somehow)
> and have it addressed properly so a reply will work. "gpr@proteon.com"
> WILL work. Once I get this figured out for my machine, I can config our
> other WS's so they can do the same.
>
> -Gary
>
The number of responses was truly amazing. I got many repsonses that
will work just fine, but I ended up using the first response I recieved:
From: pbh@cfsmo.honeywell.com (Paul B. Henninger)
gary,
i replace the original "# format of a total name" entry with:
Dq$A ($x)$.
where $A is defined as
# fully qualified mail address
DA$f@$m
and $m is defined as
# local domain name
Dmcfsmo.honeywell.com
thus, the "From:" field is always USER@DOMAIN, or for me
pbh@cfsmo.honeywell.com
===========
This does exactly what I wanted to do. Thanks also go to the following
people who replied to me:
hewett@cbl.umd.edu (Steve Hewett)
mahesh@numenor.next.nd.edu (Mahesh "BigMan" Subramanya)
atwell@cadre.af.mil (Capt Bart Atwell)
jgarb@erim.org (Joe Garbarino)
David Fetrow <fetrow@biostat.washington.edu>
bws900@cscgpo.anu.edu.au (Bede W P Seymour)
IJohnston@cmutual.com.au
ohnielse@ltf.dth.dk (Ole Holm Nielsen)
rsr@PRI-MU.Prime.COM (Robert Schreiber)
peterg@jupiter.murphy.com (Peter Gutmann)
zod@ncube.com (Zod Mansour)
alastair@eucad.co.uk (Alastair Young)
Mario Nigrovic <mario@wdc.sps.mot.com>
-Gary
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:39 CDT