Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Oct 2004 15:03:11 -0400 (EDT)
From:      Jerry McAllister <jerrymc@clunix.cl.msu.edu>
To:        sandy@keathleywebs.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Email redirects
Message-ID:  <200410121903.i9CJ3Cr21265@clunix.cl.msu.edu>
In-Reply-To: <416BB9B9.4291.AA826C@localhost> from "Sandy Keathley" at Oct 12, 2004 11:02:17 AM

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410121903.i9CJ3Cr21265>