How to do it...

In this section, we will see how to install and configure Postfix on an Ubuntu sever and use as per our requirements:

  1. As Postfix is included in Ubuntu's default repositories, installing it becomes easy. To begin the installation, we will run the following command, along with the DEBIAN_PRIORITY=low environmental variable to answer some additional prompts during the installation:

  1. Once the installation starts, the first window will ask for the type of mail configuration. We will select Internet Site for our needs, as shown as follows:
  1. In the next window, enter the hostname to be used for System mail name, as shown here: ...

Get Practical Linux Security Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.