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

Mailing to a group

How can I mail to a group of users at a time?

Eg. Say I have a group "research" and 10 users under it. I want to send a common mail to all these users with a single command.

Thanks
tammar
0
tammar
Asked:
tammar
1 Solution
 
freelonCommented:
Hi,

It isn't possible to send a single email to members of a group as defined in /etc/group.  You'd have to make a corresponding group alias in /etc/aliases (assuming you use an email system which uses /etc/aliases, like sendmail).  So the format would be, in etc/aliases:

research: bob,joe,jim,helen,alice,mary,peep@hotmail.com

The start of the line is the email alias name, followed by a colon.  Then include comma-delimited email addresses which the aforementioned alias name will send to.

In the above example, an email sent to "research" will send a separate email to bob, joe, jim, helen, alice, mary, and peep@hotmail.com

After adding this email alias to /etc/aliases (as the root user, of course), run the "newaliases" command, so that the machine will recognize the new email alias.

Hope this helps,

~f
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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