Date: Sun, 17 Dec 2000 09:41:11 +0200 (CAT) From: "Luckson Bwalya [Asst Head - System Dev & Sup]" <lbwalya@mopani.com.zm> Message-ID: <Pine.LNX.4.10.10012170932310.26768-100000@mindola.mopani.com.zm> Subject: Re: [SLE] Send a mass email to all my users On Thu, 14 Dec 2000, Linux News User wrote:
Hi !
I need to send an email to all the users on my system but I don't have an alias for all of them.
How could I do that ?
thanks
--ed
Step 1 Follow Alvaro Novo's step Assuming you have permissions: cut -d: -f1,5 /etc/passwd > userlist # redirect output to userlist will extract usernames and real names (drop 5 above if you don't want names) from /etc/passwd Hope it helps, Alvaro Novo Step 2 The subscribers alias in the /etc/aliases file should be: ubscribers: :include:/root/userlist #/root/userlist is the path to userlist Step 3 Rebuild the alias <p>Step 4 ubscribers becomes the alias for all users . Re-create the userlist each time you add a new user to your system. <p><p><p>Tell me if it works/it fails. <p>Luckson.