From owner-freebsd-questions Thu Nov 25 0:27: 3 1999 Delivered-To: freebsd-questions@freebsd.org Received: from chiba.3jane.net (chiba.3jane.net [207.170.70.27]) by hub.freebsd.org (Postfix) with ESMTP id 7E5E214BD6 for ; Thu, 25 Nov 1999 00:26:55 -0800 (PST) (envelope-from damon@chiba.3jane.net) Received: from chiba.3jane.net (localhost [127.0.0.1]) by chiba.3jane.net (8.9.1a/8.9.1) with ESMTP id CAA03830; Thu, 25 Nov 1999 02:25:44 -0600 (CST) Message-Id: <199911250825.CAA03830@chiba.3jane.net> To: Marc Wandschneider Cc: "'freebsd-questions@FreeBSD.ORG'" Subject: Re: sendmail and freebsd.mc In-reply-to: <13D5F9EDFD72D211BC3100105A1C2233054A60@AKIRA> References: <13D5F9EDFD72D211BC3100105A1C2233054A60@AKIRA> Comments: In-reply-to Marc Wandschneider message dated "Wed, 24 Nov 1999 23:13:30 -0800." MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3827.943518343.1@chiba.3jane.net> Date: Thu, 25 Nov 1999 02:25:44 -0600 From: "Damon M. Conway" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Marc Wandschneider wrote: > > >blaugh! > > so, i've got sendmail 8.9.3 all set up on my FreeBSD server >(with the default freebsd.mc from 3.3 RELEASE), and everything seems to >be working great, but i did something of questionable legality, so i was >hoping somebody here could tell me whether what i did was okay. > > i want the sender address of ALL mail in my organization of the >form: > > bob@host.domain.com > > to become > > bob@domain.com > > so, while the clients just forward the mail on to the server, i >went in to the server's sendmail.cf file, and replaced all $j on the RHS >with $m. (they were all in rules 3, 96, and 94). > > Now, it SEEMS to work all fine and dandy, but i'd like somebody >to tell me if there's a better way of doing this, or if this is okay. > http://www.sendmail.org/m4/masquerading.html for any sendmail config option there should be a m4 rule. personally, i never edit my .cf by hand. it'll get screwed up with tabs or spaces or something silly like that. damon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message