How To Install ssmtp on Fedora 34

ssmtp is Extremely simple MTA to get mail off the system to a Mailhub

Introduction

In this tutorial we learn how to install ssmtp on Fedora 34.

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 or manage a queue. That belongs on a mail hub with a system administrator.

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

Install ssmtp on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install ssmtp

Install ssmtp on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install ssmtp

How To Uninstall ssmtp on Fedora 34

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

sudo dnf remove ssmtp

ssmtp Package Contents on Fedora 34

/etc/ssmtp
/etc/ssmtp/revaliases
/etc/ssmtp/ssmtp.conf
/usr/bin/mailq
/usr/bin/mailq.ssmtp
/usr/bin/newaliases
/usr/bin/newaliases.ssmtp
/usr/lib/.build-id
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/cbfba31d70459bdf17cbe64c8de30cd2841965
/usr/sbin/sendmail
/usr/sbin/sendmail.ssmtp
/usr/sbin/ssmtp
/usr/share/doc/ssmtp
/usr/share/doc/ssmtp/CHANGELOG_OLD
/usr/share/doc/ssmtp/COPYING
/usr/share/doc/ssmtp/COPYRIGHT
/usr/share/doc/ssmtp/ChangeLog
/usr/share/doc/ssmtp/INSTALL
/usr/share/doc/ssmtp/README
/usr/share/doc/ssmtp/TLS
/usr/share/man/man5/ssmtp.conf.5.gz
/usr/share/man/man8/mailq.8.gz
/usr/share/man/man8/mailq.ssmtp.8.gz
/usr/share/man/man8/newaliases.8.gz
/usr/share/man/man8/newaliases.ssmtp.8.gz
/usr/share/man/man8/sendmail.8.gz
/usr/share/man/man8/ssmtp.8.gz

References

Summary

In this tutorial we learn how to install ssmtp on Fedora 34 using yum and dnf.