Linux Email Services - Configuring Postfix

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

The applications team at Eucalyptus and Lavender, Inc. have requested an email account to test mail functionality with their application. Since this will be the first Linux email server for the company, you have been asked to install and configure a basic Postfix email server.

To complete this lab:
– Install, start, and enable the Postfix service, if needed.
– Configure the service with the following information:
– `myhostname` is ``
– `mydomain` is ``
– Install `mailx` and send a test email to the cloud_user account to test your configuration.

Good luck!

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Install, Start, and Enable the Postfix Service, If Needed

Verify if the Postfix service needs to be installed.

Note: The Postfix service is already installed, started, and enabled by default on this Linux distribution.

Configure Postfix and Restart the Service

Add the configuration key definitions to the main Postfix configuration file:

  • myhostname =
  • mydomain =

Restart the Postfix service.

Test the Service

Install mailx and send a test email to the cloud_user user account to verify the service.

Verify the email was sent.

Additional Resources

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?