Date: Wed, 18 Oct 2000 22:02:11 +0100 From: "Colin Jack" <colin@mainline.co.uk> To: "Paul Herman" <pherman@frenchfries.net> Cc: <freebsd-questions@FreeBSD.ORG> Subject: RE: Mailing Users Message-ID: <ABEBLEJCDMCJJBELODOEMEODCHAA.colin@mainline.co.uk> In-Reply-To: <Pine.BSF.4.21.0010181706090.280-100000@bagabeedaboo.security.at12.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ABEBLEJCDMCJJBELODOEMEODCHAA.colin>
