From owner-freebsd-questions Tue Oct 3 7:26:15 2000 Delivered-To: freebsd-questions@freebsd.org Received: from flathead.gate.net (flathead.gate.net [216.219.246.5]) by hub.freebsd.org (Postfix) with ESMTP id 821C337B502 for ; Tue, 3 Oct 2000 07:26:12 -0700 (PDT) Received: from tiwa.gate.net (tiwa.gate.net [199.227.0.141]) by flathead.gate.net (AIX4.3/8.9.3/8.9.3) with ESMTP id KAA176122; Tue, 3 Oct 2000 10:26:03 -0400 Received: from localhost (wjm@localhost) by tiwa.gate.net (8.8.6/8.7.3) with ESMTP id KAA507770; Tue, 3 Oct 2000 10:26:20 -0400 X-Authentication-Warning: tiwa.gate.net: wjm owned process doing -bs Date: Tue, 3 Oct 2000 10:26:20 -0400 (EDT) From: William Melanson To: Chris Angell Cc: freebsd-questions@FreeBSD.ORG Subject: Re: VirtualUserTable In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 2 Oct 2000, Chris Angell wrote: % Date: Mon, 02 Oct 2000 18:24:54 PDT % From: Chris Angell % To: freebsd-questions@FreeBSD.ORG % Subject: VirtualUserTable % % I have a FreeBSD machine that is on the Internet acting as a mail and www % server (among other things). I want to host multiple domains. The only % problem I have is not knowing how to make the email work. When I used to % work at a small ISP, there was a /etc/virtualusertable that was updated, % then hashed (?) to make a database of users. So there would be entries like % this: % % webmaster@somesite.com root % This is what I've done: 1. Within the directory /etc/mail create a file called "virtusrtable". 2. Within the virtusrtable file place the following: webmaster@somesite.com root What this says is that any mail which comes to webmaster@somesite.com will directed to root's mailbox. IMPORTANT: Within the virtualusertable file, field seperators must be the tab key. 3. Using the makemap command we convert the virtualusertable file to a database format: % makemap hash /etc/mail/virusrtable < /etc/mail/virtusrtable This will create a /etc/mail/virtualusertable.db file. Everytime the virtualusertable file is modified you must once again rebuild the virtualusertable database by running the makemap command above. Upon completion of running makemap you should have the following 2 files: virtualusertable virtualusertable.db 4. Restart Sendmail: Kill -HUP [sendmail PID] 5. Done... ------------------------------------------------------------- William Melanson - CyberGate/espire Network Operations Center ------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message