Juan
06-15-2001, 02:56 AM
hi, how do I send an e-mail to all the users on my server?
![]() | View Full Version : send mail to all users Juan 06-15-2001, 02:56 AM hi, how do I send an e-mail to all the users on my server? Lantins 06-16-2001, 10:41 AM Hey, try this below, my m8 akaKul told me... How do I mail ALL the users on my raq in one go ? I would create a new user under the main site "SOMENAME", (I would choose an account that is unlikely to ever receive mail accidentally - ie. add some weird stuff like numbers etc, coz you wont want all your customers receiving mail from outside sources on this ! ) Then you now need to do this from SSH: ls -Al /home/spool/mail/* | gawk {'print "\\"$9'} | sed 's~/home/spool/mail/~~' > /home/sites/home/users/SOMENAME/.forward Now send an EMAIL to the new account (ie. SOMENAME@mymainsitedomain.com ) You could then delete the account I suppose, or keep it inplace for next time. BUT remember to run the "ls -Al...." thing again, incase new acounts have been created..... Update: (Kul) You may Notice that any mail you send to the account SOMENAME (SOMENAME@mydomain.com) will have SOMENAME in the TO email address, which will then reveal to all you users what email address can access the whole Raq. An easy way to avoid this happening would be to address the TO address as something like ANNOUNCE@mydomain.com, and BCC (Blind Carbon Copy) SOMENAME@mydomain.com. Thus hiding the REAL email address that allows MASS Raq mailing It works grate for me, Good luck. Luke Antins Juan 06-16-2001, 05:21 PM Thx man ! |