Skip to main content

Configure and Use an SMTP Server for Email Forwarding

Hands-On Lab

 

Photo of Terrence Cox

Terrence Cox

Senior Vice President of Content

Length

01:00:00

Difficulty

Intermediate

Using a system to forward email to another system or for an entire domain is a common use case for SMTP. In this activity, you will get a chance to install and work with SMTP as a forwarding agent in order to better understand the flow of messages between systems.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

Your team would like a centralized server to function as a Simple Mail Transfer Protocal server. Your organization's standard SMTP service is 'postfix', which you are being asked to install and configure.

Once you have Postfix installed, you are being asked to set the destinations for the local server system such that emails come from the IP address of the server RATHER than looking to be from localhost. Be sure to use the appropriate postfix utility to edit:

  • mydestinations
  • mynetworks
  • inet_interfaces

In order to avoid any issues. Once the configuration is complete, restart the postfix service and verify that you can send email through postfix port 25 (using telnet for example, or any other CLI mail client you choose to install).