Learning about email services and setting them up manually
Email services are an essential part of any infrastructure. The ability to send email reports or alerts to a dedicated email list is one of the reasons that email is so useful. Using the postfix
package, you are able to set up full email relays or null clients that forward emails to other relays. This allows you to control how your email is routed in your network. In this section, we will see how to set up a null client for these purposes. We will install postfix
to control email from the server, set up firewall rules, and finally set up the null client settings both manually and through Ansible Automation.
The first thing we have to do is install postfix
. Running the command to install postfix
can be seen in the following screenshot:
Figure 6.16 – Install postfix
We are then going to view the configuration file for postfix
. This is not the best way to set up postfix
as the postconf
command...