Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sendmail alias

Status
Not open for further replies.

sonun

IS-IT--Management
Dec 26, 2001
384
US
Wanted inputs in creatin sendmail aliases manually as well as through webmin.
I want to alias to say three users who exist in nis-maps as user1@domain.com user2@mydomain.com user3@mydomain.com and I want mails sent to group1@mydomain.com sent to all of them, how do I do it ?? I am confused as group1 does not have a nis nor a local account. So, should I create one before that then ????????????????????
Thanks.
 
Edit the /etc/aliases file

add-
user1: user1@domain.com
user2: user2@domain.com
user3: user3@domain.com
group1: :include:/etc/mail/allusers

goto /etc/mail and create a file called allusers (NOTE: I am using allusers as an example you call it whatever you want just make sure it matches what you have in the aliases file.)

Inside the allusers file type:
user1
user2
user3

Now save it...

At the command prompt type:

newaliases

Test it by sending an email to the groupname@whatever. I did not have to create any user with the groupname.

Bill

 
ok, this is what I did.
in /etc/aliases, I added these lines at the very end.
ssa: ssa@cl.town.com
shant: shant@cl.town.com
student: student@cl.town.com
group1: :include:/etc/mail/test
saved and quit

I created a file called 'test' in /etc/mail in which I typed in,
ssa
shant
student
saved and quit

typed newaliases, it sais,
/etc/mail/aliases: 41 aliases, longest 28 bytes, 430 bytes total

Then I try to send mail to test@cl.town.com or group1@cl.town.com, it fails.

where did I diddle ???

Thanks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top