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

Re: [cobalt-users] e-mail to all users



There might be a better way to do this, but here goes:

First create a list of all the users on the machine (from /etc/passwd):

cut -d: -f1 /etc/passwd > /root/userlist

Then edit the userlist file (if you want) to take out things such as
root
bin
daemon
adm
lp
sync

Then add an entry to /etc/aliases like

allusers:       :include:/root/userlist

And run the newaliases command.

Then send out your email, addressing it to yourself, being sure that you
blind carbon copy allusers@xxxxxxxxxxxxxxxxx  This will prevent the list of
users from seeing each others addresses, and from using the alias in a reply
or other mail (which would allow them to send mail to all the other users).

I usually comment out the allusers line in aliases when I'm through, just in
case someone tries to send mail to that address.  I don't want anyone being
able to send mail to all my users.

I hope that helps.  If there is a better way, please let me know.

Thanks,
Beth

----- Original Message -----
From: "Sebastian Döll" <seb@xxxxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Saturday, October 21, 2000 8:22 AM
Subject: [cobalt-users] e-mail to all users


> hi,
>
> how can i send a e-mail to all users
> of my raq2?
> i know the option of a mailinglist,
> but not all users are in a list.
>
> cu
>
> --
> GlobalNetwork.project . . . . . . .
> Sebastian Döll . Projektmanager/Webmaster
> W.- Shakespeare Str. 26
> 99425 Weimar . Germany
> phone:  +49 3643 - 53256  .  fax: -854412
> mobile: +49 177 - 7644627
> mailto:seb@xxxxxxxxxxxxxxxx
>
> -+-There is a difference between
> knowing the path and walking the path-+-
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>