Thanks everybody for the fast responses.
First the question:
:I need to occasionally send email to all my users on the system.
:The majority of my users use POP3 to retrieve their email.
:
:My first try was with a mailing list in sendmail, which failed miserably. Some
:folks responded to the mailing-list and everybody else received it, not just
:the owner - which was of course entirely undesired.
:Is there any easy way to send an email to everybody ?? Maybe an easy script
:(/bin/mail) ??
:
I received almost 20 answers and most fall into the following 4 categories
1. Use the bulletin feature of the qpopper POP3 daemon (available from
ftp.qualcomm.com).
2. Use Mailinglists, but use BCC - Blind Carbon Copy - for the real list.
>Send it to the mailing list using BCC, Blind Carbon Copy, which cannot be
>seen by the reciepient.
>From: operator
>To: operator
>Bcc: all-accounts-list
>Subject: Important message
3. Use a shell or perl sript.
Something like
>#!/bin/sh
>cat /etc/passwd | cut -d: -f1 >users.temp
># Maybe put in a grep -v (something) to get rid of the system accounts
>for i in `cat users.temp`
>do
> mail $i < message.txt
>done
4. A very enterprising person did the following:
cd /usr/home
mail *
This effectivly send mail to every every user who had an account in usr
home. In reality, we had broken our 30,000 accounts into several
different directories, so he had to do this 3 or 4 times, but it worked.
Thanks again to
bennett_at_hpel.cees.edu
ckrieger(a)latrade.com
moore(a)shemp.bucks.edu
bive(a)styra.lidac.liu.se
Anil.Khullar(a)mailhub.gc.cuny.edu
eisenman(a)tricity.wsu.edu
jd(a)student.adelaide.edu.au
joltes(a)fas.harvard.edu
scott(a)dsuper.net
stevev(a)hexadecimal.uoregon.edu
rioux(a)ip6480nl.ce.utexas.edu
fxjwk(a)aurora.alaska.edu
Received on Wed Nov 20 1996 - 22:33:46 NZDT