Wednesday, June 20, 2007

Display System or User Defined Mail Aliases

On various occasions, I've been asked to show the members of a system or user defined mail alias. To satisfy this request, I could have simply performed a more or cat on the local /etc/mail/aliases file. But I prefer to use the praliases command. Here's an example.

#praliases

If you create another mail alias, you will need to execute the newaliases command.

#vi /etc/mail/aliases
egalias:member1,member2, member3, member4
:wq!
#newaliases
#praliases

No comments: