home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / admin / 4256 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  2.1 KB

  1. Path: sparky!uunet!ogicse!reed!romulus!trost
  2. From: trost@romulus.reed.edu (Bill Trost)
  3. Newsgroups: comp.unix.admin
  4. Subject: Re: Help Needed: How to send mail to "everybody" at once
  5. Message-ID: <TROST.92Jul21233312@romulus.reed.edu>
  6. Date: 22 Jul 92 06:33:16 GMT
  7. Article-I.D.: romulus.TROST.92Jul21233312
  8. References: <1992Jul16.224234.13551@cco.caltech.edu> <1992Jul17.140319.23953@sdc.com>
  9. Sender: news@reed.edu (USENET News System)
  10. Organization: Reed College
  11. Lines: 33
  12. In-Reply-To: kenk@sdc.com's message of Fri, 17 Jul 1992 14:03:19 GMT
  13.  
  14. In article <1992Jul17.140319.23953@sdc.com> kenk@sdc.com (Ken Konecki) writes:
  15.    In article <1992Jul16.224234.13551@cco.caltech.edu> jafl@cco.caltech.edu (John Lindal) writes:
  16.    >Does anyone know how to send mail to everyone on a particular system
  17.    >without having to specify all the user names?
  18.  
  19.    mail `awk -F: '{ print $1 }' /etc/passwd`
  20.  
  21.    ...
  22.  
  23. I'm surprised no one has mentioned this:
  24.  
  25. On a system with 2000 users (yes, I have a particular one in mind  :-) ),
  26. you will create deadly havoc with the machine if you try to send mail to
  27. everyone.  Consider:
  28.  
  29.   * If your mail message small -- say, 1K, sending this message will
  30.     consume two megabytes on your spool disk.  If you fill the spool disk,
  31.     you essentially kill mail on the machine.
  32.  
  33.   * Given that you can't send mail to everyone at once (too many command
  34.     line arguments), the next obvious approach is to send mail to each
  35.     user personally.  Now, since all a program like mail does is pass the
  36.     message of to sendmail, and sendmail runs as root (who is allowed an
  37.     arbitrary number of processes), you suddenly create a sitation where
  38.     the machine is trying to deliver hundreds of mail messages
  39.     *simultaneously*.  This, more likely than not, will eventually crash
  40.     the machine, and then the system administrator gets to play clean-up.
  41.  
  42. Conclusion?  Post news, or modify /etc/motd, or something -- but don't
  43. send everyone mail.  You're bound to lose bad if you try.
  44. --
  45. Bill Trost <trost@reed.edu>   There are two types of people: those who divide
  46. Reed College Systems Manager  people into two types, and those who don't.
  47.