How To Install ssmtp on CentOS 7
Introduction
In this tutorial we learn how to install ssmtp
on CentOS 7.
What is ssmtp
A secure, effective and simple way of getting mail off a system to your mail hub. It contains no suid-binaries or other dangerous things - no mail spool to poke around in, and no daemons running in the background. Mail is simply forwarded to the configured mailhost. Extremely easy configuration. WARNING expand aliases or manage a queue. That belongs on a mail hub with a system administrator.
We can use yum
or dnf
to install ssmtp
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ssmtp.
Install ssmtp on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install ssmtp
using yum
by running the following command:
Install ssmtp 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 ssmtp
using dnf
by running the following command:
How To Uninstall ssmtp on CentOS 7
To uninstall only the ssmtp
package we can use the following command:
References
Summary
In this tutorial we learn how to install ssmtp
on CentOS 7 using yum
and dnf
.