[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Email - All Admin
- Subject: Re: [cobalt-users] Email - All Admin
- From: "Steve Werby" <steve-lists@xxxxxxxxxxxx>
- Date: Tue Jun 5 22:00:38 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
"Gary Meadows" <webmaster@xxxxxxxxxxxxxxxx> wrote:
> IIRC, someone mentioned a way of emailing all the siteadmin on a Cobalt
> recently.can anyone confirm this for us?
I think someone suggested opening /etc/group, finding the line for the group
"site-adm" and copying and pasting the associated users into your mail
program with your main domain name appended. I suggest automating the
process so you don't need to touch anything when the list of site admins
changes.
To get the usernames you want you can do:
cat /etc/group | grep site-adm | cut -f 4 -d ":"
I would setup a cron job to do this:
cat /etc/group | grep site-adm | cut -f 4 -d ":" > /root/admin_list.txt
Then I'd create a line in virtusertable like:
serveradmins@xxxxxxxxxxxxxxx serveradmins
And a line in aliases like:
serveradmins: :include:/root/admin_list.txt
Then run "newaliases", "makemap hash /etc/virtusertable <
/etc/virtusertable" (replace w/ /etc/mail/virtusertable depending on Cobalt
server you are using) and restart sendmail. Then you can email the
siteadmins by emailing serveradmins@xxxxxxxxxxxxxxxx It's a good idea to
obfuscate the email address and username so know one can guess it and to
email the bcc: field so it doesn't appear in email headers.
If you want to refer to a previous post of mine about generating a list of
*all* users see
http://marc.theaimsgroup.com/?l=cobalt-users&m=98829465100883&w=2.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/