home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.sysadmin
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!nugget.rmNUG.ORG!jacob
- From: jacob@nugget.rmNUG.ORG (Jacob Gore)
- Subject: Re: Netinfo aliasing & scripts
- Message-ID: <1992Dec17.191737.22837@nugget.rmNUG.ORG>
- Organization: Rocky Mountain NeXT Users' Group
- References: <1992Dec15.195116.22956@magnus.acs.ohio-state.edu>
- Date: Thu, 17 Dec 1992 19:17:37 GMT
- Lines: 30
-
- Shane M Zatezalo:
- > Is there a way to define an alias in the NetInfoDB that would, upon
- > it receiving mail, run a script?
-
- For mail from a local account, yes:
-
- echo 'alias_name: |/full/path/scriptname' | niload aliases /
-
- If not a net-wide alias, the last "/" needs to be a "." (or some
- mid-level NetInfo domain if you have more than two levels). You can
- also use NetInfoManager to achieve the same result, if you're into
- pseudoconsistent graphical interfaces.
-
- The script gets run under the uid/gid of the sender.
-
- What if the mail comes from another machine, making it impossible to
- use the sender's uid/gid? It fails. So if you want to send mail to
- this alias from outside, you need to create an account named after
- that alias, and put the "|/full/path/scriptname" string into
- ~alias_name/.forward .
-
- > (I'm trying to figure out an easy way to do a mailing list)
-
- I'd look for a list-server package... I bet there's one in
- comp.sources.unix archives on ftp.uu.net.
-
- Jacob
- --
- Jacob Gore, Eastern NM U. Jacob@BlackBox.ENMU.Edu | Jacob@Gore.Com
- Member of the League for Programming Freedom (LPF)--lpf@uunet.uu.net
-