[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Emai All Users - Help
- Subject: Re: [cobalt-users] Emai All Users - Help
- From: Kul <Webmaster@xxxxxxx>
- Date: Thu Apr 26 16:10:44 2001
- Organization: Qax
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
WorldCops wrote:
> I need to send an email to all my users on the RaQ4
> I have tried some script someone posted, and it doesn't work.
> Is there an easy way to send an email to all users on my RaQ4?
Hi,
I have a raq3, and this is what I use, i'm sure you could quickly adapt this to be used on the raq4 (it may not even need changing, but I dont know myself :( )
There are probably 1001 ways to do this.....
but heres my suggestion.....
I would create a new user under the mainsite "SOMENAME",
(I would choose an account that is unlikely to ever receive mail accidentally -
ie. add some weird stuff like numbers etc, because you wont want all your customers receiving mail from outside sources on this !!!!)
Then you now need to do this from SSH/Telnet:
ls -Al /home/spool/mail/* | gawk {'print "\\"$9'} | sed 's~/home/spool/mail/~~' > /home/sites/home/users/SOMENAME/.forward
This `.forward` file will contain a full list of all users that have been created through the GUI, (not root and stuff tho)
Now send an EMAIL to the new account (ie. SOMENAME@xxxxxxxxxxxxxxxxxxxx ).
You could NOW delete the account I suppose, or keep it inplace for next time - your choice.
BUT remember to run the "ls -Al...." thing again, incase new acounts have been created.....
Have Fun.
--
Regards,
Kul