[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] RE: RaQ3i - Sendmail 8.9.3 configuration issues !SOLVED!



> WOOOO-HOOOO!! You have also given me important
> insights to sendmail -
> very much appreciated. Thanx to all who took the
> time to reply and help
> me out, I am gratefull.
> 
> I have one more quick question - is there an easy
> way for me to send an
> email to every user on my server? It will save me
> alot of phone calls
> telling everyone about the change they have to make
> to their email
> client to accomodate POP B4 SMTP.
> 

Hi!

Just recently used this to send a mail to all users on
my RaQ:

cut -d : -f 1 /etc/passwd | egrep -v -f exclude |
while read USER; do mail -s "Subject" ${USER} <
announce.txt; done

This is a 1 line shell script :))

exclude is a textfile, containing users to which you
do not want to send the mail. Mine contained these:

root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
gopher
ftp
httpd
nobody
postgres
named
safetp

You can add/remove other users.
announce.txt contained the text which I wanted to send
to the users.
Also, you can change the Subject to what you want :)


Hope this helps,
Csaba Albert



__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://platinum.yahoo.com