Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Oct 2000 17:14:30 +0200 (CEST)
From:      Paul Herman <pherman@frenchfries.net>
To:        Colin Jack <colin@mainline.co.uk>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Mailing Users
Message-ID:  <Pine.BSF.4.21.0010181706090.280-100000@bagabeedaboo.security.at12.de>
In-Reply-To: <ABEBLEJCDMCJJBELODOEAEMDCHAA.colin@mainline.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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?Pine.BSF.4.21.0010181706090.280-100000>