From owner-freebsd-isp Mon Oct 25 7:30:15 1999 Delivered-To: freebsd-isp@freebsd.org Received: from mail.ausit.com (mail.ausit.com [203.41.163.235]) by hub.freebsd.org (Postfix) with ESMTP id 4E4E514BFD for ; Mon, 25 Oct 1999 07:30:08 -0700 (PDT) (envelope-from greg@ausit.com) Received: from wk1 (sun.ausit.com [203.41.163.240]) by mail.ausit.com (8.9.3/8.9.3) with ESMTP id AAA09507 for ; Tue, 26 Oct 1999 00:30:13 +1000 Message-ID: <199910260030490218.06A28D3C@mail.ausit.com> In-Reply-To: <00d501bf1f0a$05667d00$e9c276d1@empireone.net> References: <00d501bf1f0a$05667d00$e9c276d1@empireone.net> X-Mailer: Calypso Version 3.00.03.02 (1) Date: Tue, 26 Oct 1999 00:30:49 +1000 From: "Greg W" To: freebsd-isp@FreeBSD.ORG Subject: Re: Mass Email Content-Type: text/plain; charset="ISO-8859-1" Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Here is something a Rick L Mantooth whipped up you should be able to mod to your liking Here is a quickie. #!/bin/sh # Build list of users from /etc/passwd starting with # Line 19 so we don't send mail to non-users. # # Adjust below if statement to match your system. # ( cat /etc/passwd | awk ' BEGIN{ FS=":" cnt=1 } { if(cnt < 19){ cnt++ ; next } printf "%s@domain.com\n",$1 cnt++ }' ) > /tmp/mail_list # # You may need to use grep -v statement in for # loop below if you have added automated users # ie: postgres, etc.. to filter out. # # Now to email out to the users. for user in `cat /tmp/mail_list` do mail "${user}" < /Path/To/File/File_To_Send_Here done rm -f /tmp/mail_list # End script *********** REPLY SEPARATOR *********** On 25/10/99 at 9:57 James wrote: >I have to make a change on our system. >How do I go about emailing all of the users on the system >with out giving each of my users my user list? > > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-isp" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message