On Wed, Nov 17, 1999 at 04:16:37PM +0100, Janez Vrenjak wrote:
> Hello,
> does anyone know how can I send a mail to all users on my box at one
> time! Well I run Zmailer and have to send a a message because
> upgradeins the system.
It all boils to the question of how you can pick addresses of
all valid recipients in your box ? After you have done that,
there are ways how to send email efficiently to all those users.
On the other hand, you might as well do posting individually, e.g:
#!/bin/sh
for user in `cut -d: -f1 /etc/passwd`
do
/usr/bin/Mail -s "Update notice" $user < message.txt
done
Unless you have more than a few thousand users, you should have no
problems at all. If you have, ZMailer has smarter ways to handle
the thing beginning with 'listexpand' utility, which was written
especially for the VGER.rutgers.edu in mind. ($MAILBIN/ta/listexpand)
...
> Janez
/Matti Aarnio <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]