From owner-freebsd-questions Wed Jul 8 04:13:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA05895 for freebsd-questions-outgoing; Wed, 8 Jul 1998 02:22:22 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ns.cityip.co.za (ns.cityip.co.za [196.25.223.140]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id CAA05680 for ; Wed, 8 Jul 1998 02:21:40 -0700 (PDT) (envelope-from wjv@cityip.co.za) Received: from wjv by ns.cityip.co.za with local (Exim 1.82 #2) id 0ytp1J-00067D-00; Wed, 8 Jul 1998 09:52:05 +0200 Message-ID: <19980708095205.F23442@cityip.co.za> Date: Wed, 8 Jul 1998 09:52:05 +0200 From: Johann Visagie To: Geoffrey Robinson Cc: questions@FreeBSD.org Subject: Re: Email for Virtually Hosted Domains Mail-Followup-To: Geoffrey Robinson , questions@freebsd.org References: <35A25235.65749A09@globalserve.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <35A25235.65749A09@globalserve.net>; from Geoffrey Robinson on Tue, Jul 07, 1998 at 12:52:05PM -0400 X-PGP: ftp://ftp.cityip.co.za/users/wjv/pubkey.asc X-URL: http://www.cityip.co.za/~wjv/ Sender: owner-freebsd-questions@FreeBSD.org Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 07 Jul 1998 at 12:52 SAT, Geoffrey Robinson wrote: > > I put dom2.com in /etc/sendmail.cw so that mail addressed to me@dom1.com > and me@dom2.com go to my mailbox. The problem with this is that I want to > have mail addressed to say webmaster@dom1.com and webmaster@dom2.com go > into different mailboxes. I tried to follow the directions at > http://www.sendmail.org/virtual-hosting.html but can't make much sense of > it. Get rid of sendmail ASAP. Install something like exim or qmail. Exim makes virtual domains almost trivial. > Is there an easy way of doing this? There's an easy kludge, at least: Install procmail. Put an alias in /etc/aliases for every account that has to be "shared". Set up that alias to pipe the message through a specific procmailrc. Have that procmailrc distribute the mail where it's supposed to go. Alternatively, I believe the URL you mention explains how to do it with sendmail. Not that I've ever tried, or am ever likely to. :-) -- V Johann Visagie | Email: wjv@CityIP.co.za | Tel: +27 21 419-7878 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message