From owner-freebsd-questions Mon Jun 4 16:31:42 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 6D0CC37B406 for ; Mon, 4 Jun 2001 16:31:35 -0700 (PDT) (envelope-from keramidi@otenet.gr) Received: from hades.hell.gr (patr530-b089.otenet.gr [195.167.121.217]) by mailsrv.otenet.gr (8.11.1/8.11.1) with ESMTP id f54NVTU23197; Tue, 5 Jun 2001 02:31:29 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.3/8.11.3) id f54NVTd04867; Tue, 5 Jun 2001 02:31:30 +0300 (EEST) (envelope-from keramidi@otenet.gr) Date: Tue, 5 Jun 2001 02:31:29 +0300 From: Giorgos Keramidas To: Joel Dinel Cc: freebsd-questions@freebsd.org Subject: Re: sendmail domain re-writting Message-ID: <20010605023129.A4801@hades.hell.gr> References: <20010604091253.A1405@dinjo.touchtunes.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010604091253.A1405@dinjo.touchtunes.com>; from dinjo@touchtunes.com on Mon, Jun 04, 2001 at 09:12:53AM -0400 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Jun 04, 2001 at 09:12:53AM -0400, Joel Dinel wrote: > Greetings, > > On freebsd-questions, you gave the following advice on masquerading with > sendmail : > > dnl What we masquerade as. > MASQUERADE_AS(`hell.gr') > dnl Make sure that *.hell.gr gets masq'd. > FEATURE(masquerade_entire_domain) > dnl Rewrite envelope addresses too. > FEATURE(masquerade_envelope) > > This is excactly what I need to do. What 'master config' file do I need > to add this to, and how do I regenerate my sendmail.cf from that file? > I'm running an unmodified sendmail on 4.3 -RELEASE. In my 4.STABLE freebsd installation I have in the sources tree the following files: % ls /usr/src/etc/sendmail Makefile freebsd.mc freefall.mc local.mc The local.mc file is the master config that I created by copying and editing the default freebsd.mc file. You can copy your freebsd.mc to some local.mc file and edit that file. Then, in /usr/src/etc/sendmail run: # make local.cf and copy local.cf to your /etc/mail/sendmail.cf Restart sendmail, and you're set to go. --giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message