--------------------------------------------------
Original question: Controlled access to an aliase?
How to limit the access to an email aliase? -- only letter that comes from an address on the aliase list is forwarded to each address on the list. All others are ignored or sent to a given address. I experienced this functionality i
n the past but do not know how to realize it now. Even the support engineer at SUN's tech support center can not do it.
Another common email aliase function: user may subscribe an email aliase by sending a letter to an aliase address. I guess the best way is, a daemon is fired by the arrival of the letter. User's address is then added to an aliase file. However, SUN en
gineer told me that the sendmail daemon takes care all the email related issues. Send mail does not send out or wake up user's code. Sendmail daemon can not be configured to achieve the fuction. But this is a common function and should have a solution.
------------------------------------
Each of the following is a solution:
1. Install procmail or majordomo:
Procmail from ftp.informatik.rwth-aachen.de
Majordomo from http://www.greatcircle.com/majordomo/
2. read the man page on aliases - there is a description there on how to
invoke a command when mail is sent to an alias (|). The input to the
command is the email message itself. Warning - this can weaken your
security, as anyone can send (almost) any input to your program.
3. Setup a dummy account whose user-id is the aliase-name(remove the original
aliase). Write code to deal with letters sent to aliase-name@hostname. The
code can be fired either by registrate it in .forward file under this
user-id's home folder (similar to 2. above) or by registate the code as cron task.
---------------------------------------
Thanks to
Ian MacPhedran <Ian_MacPhedran@engr.usask.ca>
David Evans <DJEVANS@au.oracle.com>
Sebastian Benoit <benoit@Mathematik.Uni-Marburg.de>
Kevin Sheehan <u-kevin@megami.veritas.com>
Al Hopper <al@logical-approach.com>
Aki Sasaki <Aki.Sasaki@barra.com>
Charlie Mengler <charliem@anchorchips.com>
Adams, Chad M CRL <cadams@crl02.crrel.usace.army.mil>
Jeffrey C. Keyser <jkeyser@frycomm.com>
Ralph Finch <rfinch@dop.water.ca.gov>
Jonathan Loh <Jonathan.Loh@BankAmerica.com>
Benjamin Cline <benji@hnt.com>
Yuming Huang
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:14 CDT