How To Install opensmtpd on CentOS 7
Introduction
In this tutorial we learn how to install opensmtpd
on CentOS 7.
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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install opensmtpd.
Install opensmtpd on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install opensmtpd
using yum
by running the following command:
Install opensmtpd on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install opensmtpd
using dnf
by running the following command:
How To Uninstall opensmtpd on CentOS 7
To uninstall only the opensmtpd
package we can use the following command:
References
Summary
In this tutorial we learn how to install opensmtpd
on CentOS 7 using yum
and dnf
.