From owner-freebsd-questions Tue May 19 09:26:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA19553 for freebsd-questions-outgoing; Tue, 19 May 1998 09:26:22 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from hotpoint.dcs.qmw.ac.uk (hotpoint.dcs.qmw.ac.uk [138.37.88.162]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA19123 for ; Tue, 19 May 1998 09:24:09 -0700 (PDT) (envelope-from scott@dcs.qmw.ac.uk) Received: from wax.dcs.qmw.ac.uk [138.37.88.191]; by hotpoint.dcs.qmw.ac.uk (8.8.7/8.8.5/S-4.0) with ESMTP; id RAA26503; Tue, 19 May 1998 17:23:43 +0100 (BST) Received: from scott@localhost; by wax.dcs.qmw.ac.uk (8.8.4/8.8.4/C-3.2); id RAA03559; Tue, 19 May 1998 17:23:41 +0100 (BST) Date: Tue, 19 May 1998 17:23:41 +0100 (BST) Message-Id: <199805191623.RAA03559@wax.dcs.qmw.ac.uk> From: Scott Mitchell MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: George Vagner CC: freebsd-questions@FreeBSD.ORG Subject: Re: mail question In-Reply-To: <99874242@toto.iv> X-Mailer: VM 6.22 under 19.15 XEmacs Lucid Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG George Vagner said: >i have 3 machines on my internal net and 1 router but i do not have >seperate ip addresses for each of these machines i only have 1 >ip address that is registered so if i write a mail message on any of the other >machines it is uasually rejected because they cant be looked up. > >is there a way to make the registered machine foward mail to the unregistered >machines and provide a reply back to any queries for the unregistered >machines? > >i am not sure if this is called spoofing or not.. > > >here is what i thought might work.... > >making registered machine gateway=YES in rc.conf >editing /etc/hosts to include these machines (already do) >editing /etc/aliases to point to these machines somehow. > >what do you suggest. if possible? The registered machine (I assume this sits between your private net and the rest of the world) should also be running natd or something similar to hide your unregistered addresses. Set up sendmail on the other machines to do nothing but forward to the gateway machine. There is a 'null' config in the sendmail cf tree that will do this for you. You will probably want to set some/all of the masquerading options on the gateway sendmail so that all mail goes out as from that machine. People outside of your private net will of course only be able to mail to your gateway box, as they can't tell that the other machines exist. Was there a particular need for mail to be delivered to individual machines? You really don't want any of your private IP's or unregistered names leaking out into the Internet at large. It tends to irritate people. HTH, Scott. -- =========================================================================== Scott Mitchell | PGP Key ID |"If I can't have my coffee, I'm just | 0x54B171B9 | like a dried up piece of roast goat" QMW College, London, UK | 0xAA775B8B | -- J. S. Bach. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message