From the course: Red Hat Enterprise Linux 8 Essential Training

Unlock the full course today

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

Configure a local mail server

Configure a local mail server

From the course: Red Hat Enterprise Linux 8 Essential Training

Start my 1-month free trial

Configure a local mail server

- [Instructor] To configure a local mail server we'll want to start by editing the etc postfix main.cf file using vi. On your rhhost1 VM open a terminal and type in sudo space vi space /etc/postfix/main.cf and hit Enter. Enter your password if prompted. The first parameter we'll edit is myhostname. Press / and type in myhostname and hit Enter. Go into insert mode and change the value to rhhost1.localnet.com and make sure it's uncommented. So then go down to mydomain and change that to localnet.com. And also make sure it's uncommented. Now scroll down again until you see myorigin. We can change this to rhhost1.localnet.com or we can use $myhostname, which contains the same value. As such we just need to uncomment the line that includes myhostname. Next let's double check which network interface this postfix will answer on. Scroll down again until you see inet_interfaces. We need to make sure this says all. You may have to comment out the current line and uncomment the line that says…

Contents