• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

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)
0
joujou101298
Asked:
joujou101298
  • 3
  • 3
1 Solution
 
joujou101298Author Commented:
Edited text of question
0
 
ghjmCommented:
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:
Thanks ghjm but..
I still need to put my list in a file, and to control who can send to that list..
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now