From the course: LPIC-1 Exam 102 (Version 5.0) Cert Prep

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create email aliases

Create email aliases - Linux Tutorial

From the course: LPIC-1 Exam 102 (Version 5.0) Cert Prep

Start my 1-month free trial

Create email aliases

- [Instructor] The "Aliases" file is a file that forwards email from one recipient to another local recipient. Unlike the other files we've looked at, this file has non-commented working lines. So let's take a look at it. On your Rhhost1 VM in a terminal, type in, "less /etc/aliases" and hit "Enter". Notice the path to this file is different than the others, as it's an Etsy and not an Etsy post fix. The format is pretty simple. Any mail sent to the recipient on the left, gets forwarded to the recipient on the right. Notice that there are a lot of service names. Any mail sent to the names of these services, will get forwarded to the root account. So the root user will see them. Notice at the very bottom of the file, we can also decide gets the emails to root. Since it's not a good idea for someone to be logged in as root, we can have all emails to root be forwarded to a user account. In our case, maybe we'd want them…

Contents