Sendmail and RH 8

LuckyTaxi

Diamond Member
Dec 24, 2000
6,044
23
81
is it possible to send email to a GROUP? here's my dilemna ...

I just inputted over 300 students into our linux mail server. Now, I need to create an alias called 'Students' so that faculty can email all students at one time. well, utilizing webmin, I am able to add users into a group very easily. However, there's no such tool that will do the same for editing the aliases file. I would need to type out each students' name into the 'students' aliases. There has to be an easier way!
 

Fuzznuts

Senior member
Nov 7, 2002
449
0
0
sendmail will read from a file a list of address cant u just echo out all your users into a file and set that file as the alias. or simply copy and paste them from webmin into a text file remove the erroneous rubbish and voila done. i just tried it with 124 address's and it took like 20 seconds. gotta be quicker :)
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
Originally posted by: lilcam
I would need to type out each students' name into the 'students' aliases. There has to be an easier way!

that's why the unix gods created scripting languages!
 

LuckyTaxi

Diamond Member
Dec 24, 2000
6,044
23
81
Originally posted by: Fuzznuts
sendmail will read from a file a list of address cant u just echo out all your users into a file and set that file as the alias. or simply copy and paste them from webmin into a text file remove the erroneous rubbish and voila done. i just tried it with 124 address's and it took like 20 seconds. gotta be quicker :)


Hmmm .. I would've done that but I thought the alias file has to look like the following. I can't just dump a file with a list of names, could I?

students: ahibbs,jcook,bsmith,ihunter
 

Fuzznuts

Senior member
Nov 7, 2002
449
0
0
yes you can each name on a sperate line they can be either full email address or local user names both will work(assuming you aloow deliver to loacl users in sendmail). then enter the alias of students and attach it to the txt file containing the names.
 

TonyRic

Golden Member
Nov 4, 1999
1,972
0
71
yes you are correct. in the aliases file you can point the alias to another file to include (don't remember if it is aything special or just the file path). This file is one email per line, or one line comma separated. You are 100% correct, it has been a long time since I have dealt with multiple alias files. :)

These individual lines can be fully qualified email addys or just local user names. :)