On Fri, Jul 09, 1999 at 11:36:01AM +0530, Dr. S.K. Singh wrote:
> Hi all,
> 
>         I wish to copy a mail to all users of my server in one stroke
> without giving individual addresses. The server RH 5.2 and sendmail.
> Please let me know if it is posiible.

        Yes, by creating a mailinglist.

  Following is written as a TEMPLATE for giving you ideas, not *full*
  step by step guide.  Primarily because my system MTA isn't sendmail..
  (but even with it the way is close like following.)

- You add following to your system ``aliases�� file:
        all-users-list: :include:/path/to/all-users.list
  (After doing edit of that file, remember to do ``newaliases'' command)
 
- And you create file   /path/to/all-users.list   following way:
        cut -d: -f1 /etc/passwd > /path/to/all-users.list
  (and you propably should weed out the first N pseudo-users in
   the file -- root, daemon, ftp, etc..)
  (but if you don't mind a few extra junk deliveries, no problem...)

- Send mail with following headers:

        To: all-users:;
        Bcc: [EMAIL PROTECTED]
        Subject: ...

  That "all-users:;" is special NON-ADDRESS format tag giving
  information to users that some unnamed list has been used,
  and that "To:" header does *not* contain real address at all.
  (But because a "To:" header *must* exist at a message, ...)

  The real delivery address is given at "Bcc:" header. 

- Remove that list -- unless you want to repeat the posting at
  some time..

> Thanks
>       Dr. S. K. Singh, I/C ARIS Cell,
>       CIRG, Makhdoom, Farah, Mathura
>       281122, India. Ph. 91-565-7-63334(R)

/Matti Aarnio <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to