Email redirects

Jerry McAllister jerrymc at clunix.cl.msu.edu
Tue Oct 12 12:03:22 PDT 2004


> 
> 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 at mhost.somewhere.net  (Fred Friendly)
otherid at otherhost.shadybiz.com  (Sam Sneaky)
...
myid at 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 at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> 



More information about the freebsd-questions mailing list