From owner-freebsd-hackers Wed Oct 9 13:54:14 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA02902 for hackers-outgoing; Wed, 9 Oct 1996 13:54:14 -0700 (PDT) Received: from Arizona.EDU (Penny.Telcom.Arizona.EDU [128.196.128.217]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA02896 for ; Wed, 9 Oct 1996 13:54:11 -0700 (PDT) Received: from sun1paztcn.wr.usgs.gov by Arizona.EDU (PMDF V5.0-5 #2381) id <01IAFWFVD9S094FGFR@Arizona.EDU>; Wed, 09 Oct 1996 13:54:07 -0700 (MST) Received: from localhost by sun1paztcn.wr.usgs.gov (4.1/SMI-4.1) id AA04650; Wed, 09 Oct 1996 13:52:27 -0700 (MST) Date: Wed, 09 Oct 1996 13:52:27 -0700 From: Doug Wellington Subject: Re: Sendmail question In-reply-to: "Your message of Wed, 09 Oct 1996 13:43:41 -0400." <199610091743.NAA12781@seine.cs.umd.edu> To: rohit@cs.umd.edu (Rohit Dube) Cc: freebsd-hackers@freebsd.org, doug@sun1paztcn.wr.usgs.gov Message-id: <9610092052.AA04650@sun1paztcn.wr.usgs.gov> MIME-version: 1.0 Content-type: TEXT/PLAIN; CHARSET=US-ASCII Content-transfer-encoding: 7BIT Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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?