From owner-freebsd-questions@FreeBSD.ORG Thu Jan 1 11:30:04 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD2FF16A4CE for ; Thu, 1 Jan 2004 11:30:04 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA2A643D2D for ; Thu, 1 Jan 2004 11:30:01 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) i01JTuwd017702 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 1 Jan 2004 19:29:56 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i01JTu3A017701 for freebsd-questions@freebsd.org; Thu, 1 Jan 2004 19:29:56 GMT (envelope-from matthew) Date: Thu, 1 Jan 2004 19:29:56 +0000 From: Matthew Seaman To: Free BSD Questions list Message-ID: <20040101192956.GA17271@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Free BSD Questions list References: <20040101160928.GA32086@teddy.fas.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="opJtzjQTFsWo+cga" Content-Disposition: inline In-Reply-To: <20040101160928.GA32086@teddy.fas.com> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.61 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on happy-idiot-talk.infracaninophile.co.uk Subject: Re: A sendmail config question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2004 19:30:04 -0000 --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 01, 2004 at 11:09:28AM -0500, stan wrote: > I'm setting up a FreeBSD machine behind a firewall to recieve mail. Inside > teh firewall the machines are in a "fak" domain. The IP address that is on > the outside of the firewall is in a vaild DNS block. >=20 > Looking at the default freebsd.mc config file, I don't see anywhere to te= ll > sedmail to accept mail for the real domain. What am I missing? All you have to do is add the list of addresses (ie. the RHS part, after the @ symbol) to the file /etc/mail/local-host-names, one per line. This file should list all of the addresses that your server does final delivery for. =20 > Also how can I set up wildcarding, so that mail for that domain that does > not go to a valid user gets directed to a specifc user on that system? This is a job for virtusertable -- read about what you can do with virtusertable funtionality in /usr/share/sendmail/cf/README. The default FreeBSD configuration already includes virtusertable support, so all you have to do is create a file /etc/mail/virtusertable into which you put a line like the following: @virtual-domain.com virtual-domain@somewhere-else.net Then run make in /etc/mail which will process that file into the db hash file sendmail uses to do it's lookups. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --opJtzjQTFsWo+cga Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQE/9HU0dtESqEQa7a0RAvtbAJsFiqCm2w+nCzPfcPwnhfFseDiT6ACbBTeV KspHd5D+zWwmAsUulD/Q04I= =MBmn -----END PGP SIGNATURE----- --opJtzjQTFsWo+cga--