"Kirti S. Bajwa" <[EMAIL PROTECTED]> wrote:

>Our company has a mail server. It has RH 6.2 and Qmail 1.3 and very much
>else. This server serves to about 200 email addresses. We need to install a
>patch which will require the system to be re-booted. Therefore, we would
>like to send an email message to all the emails addresses on our company's
>mail server, informing them of coming re-boot. Any suggestion??

It's already been suggested that you create a mailing list containing
all users. Is that unacceptable for some reason?

Here's a quick and dirty method:

  $ awk -F: '{print $1}' </etc/passwd >~/.qmail-all-users
  $ #optional: edit ~/.qmail-all-users, remove system accounts
  $ cat >msg <<MSG
  From: kbajwa
  To: kbajwa-all-users
  Subject: Reboot

  blah blah blah
  MSG
  $ /var/qmail/bin/qmail-inject <msg
  $

-Dave

Reply via email to