home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / next / sysadmin / 7085 < prev    next >
Encoding:
Text File  |  1992-12-16  |  3.0 KB  |  70 lines

  1. Newsgroups: comp.sys.next.sysadmin
  2. Path: sparky!uunet!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!uniol!proximus!gemoe
  3. From: gemoe@proximus.north.de (Gerhard Moeller)
  4. Subject: Re: Netinfo aliasing & scripts
  5. Message-ID: <1992Dec16.073612.10369@proximus.north.de>
  6. Sender: gemoe@proximus.north.de
  7. Organization: Gerhard Moeller, German NeXT User Group, Oldenburg.
  8. References: <1992Dec15.195116.22956@magnus.acs.ohio-state.edu>
  9. Date: Wed, 16 Dec 1992 07:36:12 GMT
  10. Lines: 58
  11.  
  12. In article <1992Dec15.195116.22956@magnus.acs.ohio-state.edu>  
  13. szatezal@magnus.acs.ohio-state.edu (Shane M Zatezalo) writes:
  14. > Is there a way to define an alias in the NetInfoDB that would, upon
  15. > it receiving mail, run a script?
  16. > Or would it be better to create a user who's login is that script, and add
  17. > him to the membership list of the alias?
  18. > (I'm trying to figure out an easy way to do a mailing list)
  19.  
  20. This is actually a sendmail property. (As I heard from the net, NeXT
  21. Inc. seemd to have included the sendmail in NetInfo in 3.0. Is that
  22. true? How does it affect things?) 
  23.  
  24. What you want to do (in 2.1 at least ;-) ) is to include a line like
  25.  
  26. mailprg: "|/usr1/gemoe/Apps/mailprg.filter"
  27.  
  28. in your /etc/sendmail/aliases file. (Remember to do a "newaliases"
  29. in a shell!) Here, "mailprg" is a pseudonym (there is no user like
  30. that) just for sendmail. All mail going to
  31. mailprg@proximus.north.de gets actually piped to the program
  32. /usr1/gemoe/Apps/mailprg.filter. Easy, hey? 
  33.  
  34. Also you might want (for a mailing list) a mechanism like 
  35.  
  36. mailing_list: :include:/usr/local/lib/sendmail/mailing.list
  37.  
  38. This includes a File (/usr/local/lib/sendmail/mailing.list).
  39. Here it means that any mail to mailing_list@proximus.north.de gets
  40. actually send to the names in a comma-seperated list in the file. (But
  41. be aware that lists can only be 1000 chars long due an design fault.
  42. This is no real problem, just include the next file at the end of the
  43. previous one. (="chaining")) The enties in such a file could look
  44. like: 
  45.  
  46. Name1 <foo@bar.edu>, \
  47. Name2 <blupp@bla.de>, \
  48. ...
  49.  
  50. (This is how I do it. Though I use sendmail 5.65-ida, it should work for
  51. all sendmails.)
  52.  
  53. The only remaining problem is the administration of the list. Adding
  54. and removing users, sending help-files, etc. has to be done. As my
  55. mailing list is small, this is no real problem, but I would like to have
  56. good programs that do the job and no time to write them (scripts should
  57. do the job) -- if anyone out in the net knows some decent mailing list
  58. administration programs, I would be glad to know!!! 
  59.  
  60.     Bye, Gerhard.
  61. --
  62. +---------------------------< principiis obsta! >---------------------------+
  63. N  Gerhard Moeller, Teichstrasse 12, 2900 Oldenburg (FRG) [*: 02/21/1968]   N
  64. e  Private: gemoe@proximus.north.de          Phone (voice): +49-441-75520   e
  65. X  Uni:     Gerhard.Moeller@arbi.Informatik.Uni-Oldenburg.DE      NeXTmail  X
  66. T  Z-Net:   Gerhard.Moeller@uniol.zer                          encouraged!  T
  67. +-> NoGeNUG - Northern German NeXT User Group:  NoGeNUG@proximus.north.DE <-+
  68.