From owner-freebsd-questions Wed Oct 18 14: 5:15 2000 Delivered-To: freebsd-questions@freebsd.org Received: from zog.mainline.co.uk (zog.mainline.co.uk [212.158.6.50]) by hub.freebsd.org (Postfix) with ESMTP id 510BF37B4C5 for ; Wed, 18 Oct 2000 14:05:12 -0700 (PDT) Received: from intergraph ([212.158.6.226]) by zog.mainline.co.uk (8.9.2/8.9.3) with SMTP id WAA29526; Wed, 18 Oct 2000 22:04:59 +0100 (BST) From: "Colin Jack" To: "Paul Herman" Cc: Subject: RE: Mailing Users Date: Wed, 18 Oct 2000 22:02:11 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thats quite a cool idea ... will do some experimenting. Thanks Colin -----Original Message----- From: pherman@bagabeedaboo.security.at12.de [mailto:pherman@bagabeedaboo.security.at12.de]On Behalf Of Paul Herman Sent: 18 October 2000 16:15 To: Colin Jack Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Mailing Users On Wed, 18 Oct 2000, Colin Jack wrote: > I am a relative newbie to freebsd, so please bear with me. > > Is there a way that I can send an email to all users on a server? > The idea is to warn everyone of downtime for maintenance, but with > a couple of hundred users .... there HAS to be an easy way :-) A lot of people told you how to write messages to those logged in, which might serve your needs, but if you definately would rather send a mail to all your users, you can make an alias in /etc/mail/aliases: all.users: :include:/var/log/user.list or whatever, and then just have a cronjob that updates this file every night or so which does something like: awk -F: '($3>999 && $3<65534) { print $1; }' /etc/passwd > /var/log/user.list -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message