How To Install opensmtpd on AlmaLinux 8

In this tutorial we learn how to install opensmtpd in AlmaLinux 8. opensmtpd is Free implementation of the server-side SMTP protocol as defined by RFC 5321

Introduction

In this tutorial we learn how to install opensmtpd on AlmaLinux 8.

What is opensmtpd

OpenSMTPD is a FREE implementation of the server-side SMTP protocol as defined by RFC 5321, with some additional standard extensions. It allows ordinary machines to exchange e-mails with other systems speaking the SMTP protocol. Started out of dissatisfaction with other implementations, OpenSMTPD nowadays is a fairly complete SMTP implementation. OpenSMTPD is primarily developed by Gilles Chehade, Eric Faurot and Charles Longeau; with contributions from various OpenBSD hackers. OpenSMTPD is part of the OpenBSD Project. The software is freely usable and re-usable by everyone under an ISC license. This package uses standard “alternatives” mechanism, you may call “/usr/sbin/alternatives –set mta /usr/sbin/sendmail.opensmtpd” if you want to switch to OpenSMTPD MTA immediately after install, and “/usr/sbin/alternatives –set mta /usr/sbin/sendmail.sendmail” to revert back to Sendmail as a default mail daemon.

We can use yum or dnf to install opensmtpd on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install opensmtpd.

Install opensmtpd on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install opensmtpd using dnf by running the following command:

sudo dnf -y install opensmtpd

Install opensmtpd on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install opensmtpd using yum by running the following command:

sudo yum -y install opensmtpd

How To Uninstall opensmtpd on AlmaLinux 8

To uninstall only the opensmtpd package we can use the following command:

sudo dnf remove opensmtpd

References

Summary

In this tutorial we learn how to install opensmtpd on AlmaLinux 8 using yum and dnf.