From owner-freebsd-questions@FreeBSD.ORG Tue Oct 12 19:03:22 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 51FD116A4CE for ; Tue, 12 Oct 2004 19:03:22 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC76243D1D for ; Tue, 12 Oct 2004 19:03:19 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id i9CJ3Cr21265; Tue, 12 Oct 2004 15:03:12 -0400 (EDT) From: Jerry McAllister Message-Id: <200410121903.i9CJ3Cr21265@clunix.cl.msu.edu> To: sandy@keathleywebs.com Date: Tue, 12 Oct 2004 15:03:11 -0400 (EDT) In-Reply-To: <416BB9B9.4291.AA826C@localhost> from "Sandy Keathley" at Oct 12, 2004 11:02:17 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Email redirects 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: Tue, 12 Oct 2004 19:03:22 -0000 > > I need to accept an email to a specific address, then forward it to > several several external addresses. virtusertable will do that for a > single recipient. Is there a way to do that for multiple recipients? That is what list server utilities such as majordomo or mailman are for. THey do it quite well. But, if your need is rather small and you don't want to bother with them, you can make a "poor man's" list server by creating an alias in /etc/mail/aliases that points to an include file or even a program for processing. The alias entry would look something like: aliasname: :include:/work/mlists/aliasname-list Then put the addresses you want to forward to in that file which in the example is: /work/mlists/aliasname-list The syntax of the file is: id@mhost.somewhere.net (Fred Friendly) otherid@otherhost.shadybiz.com (Sam Sneaky) ... myid@myhost.coolstuff.org (Sandy Keathley) You can leave off the parenthesized name if you want. Then when you send a message addressed to that aliasname@yourplace.whatever the message will be repeated to every address in the list file with the parenthesized name as the to name if you put one there. The only problems with this method are: You basically have to maintain it by hand. List server packages have tools for that built in. Without doing something extra, there is no checking on who can send to that list. So, some spammer could also send a message to it. If it is small and local, mostly spammers don't pick up on it though. You can write your own check to make sure the messages are coming from someone you want to use the list. But, it wouldn't take much extra programming to make it easier to just install mailman or majordomo. ////jerry > > Thanks, > > Sandy Keathley > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >