Date: Thu, 1 Jan 2004 19:29:56 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Free BSD Questions list <freebsd-questions@freebsd.org> Subject: Re: A sendmail config question Message-ID: <20040101192956.GA17271@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20040101160928.GA32086@teddy.fas.com> References: <20040101160928.GA32086@teddy.fas.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040101192956.GA17271>