Solved

Mail to everybody from Linux

Posted on 1998-08-27
6
218 Views
Last Modified: 2013-12-15
Hi, I am new in Linux.
I use Linux 1.3 (Debian). I am trying to configure my E-mail server (sendmail). I want to use it's facility to send an E-mail to all users on server (i.g. everyone@xxxx.com).
How can I do that?
Thanks!!!  
0
Comment
Question by:vali
  • 3
  • 2
6 Comments
 
LVL 2

Expert Comment

by:JYoungman
ID: 1630448
Send email to all local users or or everybody on a remote machine?

0
 
LVL 1

Accepted Solution

by:
tim_lbi earned 10 total points
ID: 1630449
Make a file (let's say /etc/all.users) wich contains all accounts name. (cat /etc/passwd | cut -f1 -d: >/etc/all.users)
Edit the file /etc/aliases and write something like this:
everyone::include:/etc/all.users
after that run 'newaliases'.

0
 

Author Comment

by:vali
ID: 1630450
1l The answer was good. If it were more detailed it would have been EXCELENT. Thanks anyhow!
Vali,
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:vali
ID: 1630451
Dear JYoungman, you didn't answer my question.
You have misunderstood my question.

0
 
LVL 2

Expert Comment

by:JYoungman
ID: 1630452
My previous comment was a *question*.  I asked that question *because* I did not understand what you had written.  So naturally I could not answer your question.

0
 

Author Comment

by:vali
ID: 1630453
I Received a GOOD answer from tim_lbi.
I am not waiting for further answers.
Thank You JYoungman.
 
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Anti-Spam SMTP Proxy Server (@SSP) 7 85
video edge NVR Device Discovery Problem 4 34
Video Streaming 6 56
Linux haproxy: stop temporary haproxy service 9 36
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now