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.

Create a null-client mail relay

Create a null-client mail relay

From the course: Red Hat Enterprise Linux 8 Essential Training

Start my 1-month free trial

Create a null-client mail relay

- [Instructor] For this exercise, we're going to send an e-mail remotely to the user on the mail server, and then login to the mail server and check it. You will need both rhhost1 and rhhost3 VMs running for this exercise. You will want to start this exercise logged in to your RHHost3 VM. We're going to reserve our RHHost2 VM for our relay host exercise later in this chapter. We'll start by installing Postfix. To so, make sure you're logged in as user1 and have a terminal open. To install Postfix, type in sudo yum install -y postfix and hit Enter. Enter your password if prompted. Postfix may be installed, and if not, this should install it without issues. Now, let's edit the main .cf file using vi. Type in clear, then type in sudo vi /etc/postfix/main.cf and hit Enter. We're going to disable DNS lookups. Since this line doesn't exist, we'll add it to the end. Go to the end of the file by pressing Esc+G+A and hit Enter. This takes you to the end of the file and puts you in Insert mode.…

Contents