Hi Arthur,

> Sorry for lamish question -- didn't find the quick answer.
>
> How do I send email to all users?

http://list.cobaltfacts.com/pipermail/cobaltfacts/20050124/004987.html

Repost:

Yeah, that's possible. However, before you do this, be sure to read all the 
instructions and especially the important recommendation at the very end:

Create a user on the primary website and give it a name that's not so easy to 
guess. In my example below I name it "mailall", but I DO NOT recommend to 
name it that way as there is the real possibility of abuse here that can 
directly harm your business.

Then run this command: 

RaQ3 and RaQ4:
==============

ls -Al /home/spool/mail/* | gawk {'print "\\"$9'} | sed 
's~/home/spool/mail/~~'> /home/sites/home/users/mailall/.forward

(All in one line and you'd need to correct the path for the forward file so 
that the forward file is written to the home directory of the "mailall" user 
that you created for this purpose).

RaQ550:
========

ls -Al /home/sites/*/users/*/mbox | gawk {'print "\\"$9'} | sed 's~/mbox~~' | 
sed 's~/home/sites/.*/~~' > /home/sites/home/users/mailall/.forward

(All in one line and you'd need to correct the path for the forward file so 
that the forward file is written to the home directory of the "mailall" user 
that you created for this purpose).

What the command does:

It reads the directory (or directories on the RaQ550) where the mailbox files  
or your users are located and it finds out what mailboxes exist in there. It 
then creates a .forward file in /home/sites/home/users/mailall/ with a list 
of all mailbox owners.

When you then send an email to user "mailall" on your server, then 
the .forward file will make sure that the mail is forwarded to ALL users that 
exist on the server.

IMPORTANT recommendation:
==========================

1.) When you use this method, put the address "mailall at yourdomain.com" into 
the BCC (Blind Carbon Copy) recipient box so that recipients do NOT see the 
"mailall" email address.

2.) Once you sent the mail to all users, delete or rename the .forward file 
(!!!). You do NOT want that anyone else than you can send mail to all your 
users in one go. Imagine a competitor or spammer sending an email to that 
address. Or one customer sending mail to the address and all other users then 
also get that mail. 

So use this one with great care and remove the "mailall"-user and/or 
the .forward file as soon as you are done with your mailing run.

-- 

With best regards,

Michael Stauber

_______________________________________________
Cobaltfacts site list
[email protected]
http://list.cobaltfacts.com/mailman/listinfo.cgi/cobaltfacts

Reply via email to