Sunday, January 07, 2007

How to Add an Entry to the Aliases File

A colleague of mine wanted to email the results of a virus scan to various IT personnel. Upon the completion of the scan's cronjob, the mail system was configured to mail the results to the IT group (via mail alias).

Here's what was added to the /etc/mail/aliases file:

#vi /etc/mail/aliases
scanResults: user1, user2,user3,otheruser@esofthub.com,...
:wq! (save and quit vi)

--Add a tab between the alias and users--

To make the change take into effect:
#/usr/bin/newaliases

No comments: