Sending mail to a group of users in one step

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)
joujou101298Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ghjmConnect With a Mentor Commented:
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
 
joujou101298Author Commented:
Edited text of question
0
 
joujou101298Author Commented:
Thanks ghjm but..
I still need to put my list in a file, and to control who can send to that list..
0
A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

 
ghjmCommented:
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
 
joujou101298Author Commented:
Thanks a lot ghjm.. I will try that Majordomo.
0
 
fdrs1Commented:
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
 
ghjmCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.