From the course: Linux System Engineer: Mail Systems Using Postfix

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: Linux System Engineer: Mail Systems Using Postfix

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 slash etc slash postfix slash main.cf, and hit Enter. Enter your password if prompted. The first parameter we'll edit is myhostname. Press forward slash 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. And 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 dollar sign 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 interfaces Postfix will answer on. Scroll down again until you see inet_interfaces. We need to make sure that says all. You may to comment out the…

Contents