Solved

Sending mail to a group of users in one step

Posted on 1998-10-12
7
195 Views
Last Modified: 2010-04-20
I need to have the possibility of sending mail (the same message)to a group of persons in ONE step.
(N.B.: This group of persons is changing frequently so I prefer to restore them in a separate file, in order to easily edit it)
0
Comment
Question by:joujou101298
  • 3
  • 3
7 Comments
 

Author Comment

by:joujou101298
Comment Utility
Edited text of question
0
 
LVL 1

Accepted Solution

by:
ghjm earned 140 total points
Comment Utility
One possibility is to use a Sendmail alias. Edit /etc/aliases and add a line like:

mygroup: bill, bob, fred, george

Then run newaliases and you should be able to e-mail all members of the group by just sending to "mygroup". Note that everyone (both on and off your system) will be able to send to this alias. Using this method, you have to edit /etc/aliases whenever the list of people changes; I don't think there is any way to put the list in a separate file.

If you want more control over who can send to the list, etc., have a look at Majordomo - it's not particularly difficult to set up, and gives you quite a bit of control over mailing lists. Details at http://www.greatcircle.com/majordomo.

0
 

Author Comment

by:joujou101298
Comment Utility
Thanks ghjm but..
I still need to put my list in a file, and to control who can send to that list..
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 1

Expert Comment

by:ghjm
Comment Utility
Okay, then you need to set up Majordomo. You can download it from the Web site above, and it includes pretty good installation instructions.
0
 

Author Comment

by:joujou101298
Comment Utility
Thanks a lot ghjm.. I will try that Majordomo.
0
 

Expert Comment

by:fdrs1
Comment Utility
Hi joujou,
to put your list in a separate file, just edit the /etc/aliases file like this

your_alias: :include:/the/path/of the file containing the list

enjoy.
0
 
LVL 1

Expert Comment

by:ghjm
Comment Utility
fdrs1: Just out of curiosity, if you do it like that, do you know if you have to run newaliases when you change the file containing the list?
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
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.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

744 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

16 Experts available now in Live!

Get 1:1 Help Now