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