From owner-freebsd-isp Fri Aug 17 14:49:27 2001 Delivered-To: freebsd-isp@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id BB2D437B407 for ; Fri, 17 Aug 2001 14:49:23 -0700 (PDT) (envelope-from nick@rogness.net) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f7HLmNB64996; Fri, 17 Aug 2001 16:48:23 -0500 (CDT) (envelope-from nick@rogness.net) Date: Fri, 17 Aug 2001 16:48:23 -0500 (CDT) From: Nick Rogness X-Sender: nick@cody.jharris.com To: Holtor Cc: freebsd-isp@FreeBSD.ORG Subject: Re: virtusertable In-Reply-To: <20010817205103.15956.qmail@web11606.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, 17 Aug 2001, Holtor wrote: > This seems like the easiest and most clean idea so > far but what should the format of the .aliases file > be? > > If i make it like so: > > user1: user@hotmail.com > user2: user@yahoo.com > > And I send email to user1@domain.com both user1 and > user2 still get the e-mail. > > Am I missing something? Thanks for all the help!! Ahhh, this setup will not work for that. You need a different tool to do what you want...like procmail. Install procmail, then in /etc/mail/virtusertable: @domain.com user Then in user's home directory, make a file called .forward. In it put this exact line: "|/usr/local/bin/procmail -m .procmailrc" In .procmailrc, add rules to inspect the TO: part of the message and send it to the appropriate real account. See procmail help for more info. Of course, there are other tools to do it as well. Nick Rogness - Keep on Routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message