Date: Wed, 09 Oct 1996 13:52:27 -0700 From: Doug Wellington <doug@sun1paztcn.wr.usgs.gov> To: rohit@cs.umd.edu (Rohit Dube) Cc: freebsd-hackers@freebsd.org, doug@sun1paztcn.wr.usgs.gov Subject: Re: Sendmail question Message-ID: <9610092052.AA04650@sun1paztcn.wr.usgs.gov> In-Reply-To: "Your message of Wed, 09 Oct 1996 13:43:41 -0400." <199610091743.NAA12781@seine.cs.umd.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Previously:
>I was wondering if somebody knew of a fix to the /etc/sendmail.cf
>which would force the return path to be user@domain-name instead
>of user@machine-name.domain-name.
I've seen a couple other answers that may be easier to implement,
but thought I'd give you my solution as well... I've done a lot
of customization to my sendmail.cf file, and I'm one of the "old-
timers" who likes to hack the file directly. (Sort of like not
being able to give up assembler or still programming MS Windows
at the SDK level...) ;-)
This is what I use in my sendmail.cf file:
######################################################################
# Set 10 - "ether" delivery agent sender address processing
# this is where we rewrite the addresses to look like
# they were sent from the hub instead of this client
S10
R$- $@$1@$H user --> user@hub
R$-@$w $@$1@$H user@local --> user@hub
That should at least give you the idea. In my case, I have a
couple declarations earlier in the file:
# Mail hub as it is known to the outside world
DHcs.umd.edu
The DH defines the hub to be cs.umd.edu, which is expanded
by ruleset 10 above. Of course, I modified this for you - I
don't really send all my mail through umd...
######################################################################
# Mailer delivery agent definitions
######################################################################
# Mailer Hub - All mail forwarded there
Mether, P=[IPC], F=mDFMuCX, S=10, R=0, A=IPC $h
The "S=10" is what calls the ruleset 10 above. Then, in ruleset
0 ("S0") on my "client" machines, I include at the end:
R$+ $#ether $@$R $:$1 forward everything to hub
This is what calls the "ether" delivery agent, which then calls
ruleset 10, etc...
I know that is as clear as mud, but I figured I'd show you the "other"
way to do it... ;-) Or maybe I'm just in a talkative mood today...
I definitely recommend that you invest in the "Bat" book from O'Reilly
if you are going to hack on sendmail at this level though...
-Doug
Doug Wellington
doug@sun1paztcn.wr.usgs.gov
System and Network Administrator
US Geological Survey, Tucson, AZ Project Office
According to proposed Federal guidelines, this message is a "non-record".
Hmm, I wonder if _everything_ I say is a "non-record"...?
FreeBSD and Apache - the best real tools for the virtual world!
Check out www.freebsd.org and www.apache.org...
Chuck - Lord of Darkness? Or Lord of Cuteness?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9610092052.AA04650>
