How To Install msmtp on Fedora 34

msmtp is SMTP client

Introduction

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

What is msmtp

It forwards messages to an SMTP server which does the delivery. Features include * Sendmail compatible interface (command line options and exit codes). * Authentication methods PLAIN,LOGIN,CRAM-MD5,DIGEST-MD5,GSSAPI,and NTLM * TLS/SSL both in SMTP-over-SSL mode and in STARTTLS mode. * Fast SMTP implementation using command pipe-lining. * Support for Internationalized Domain Names (IDN). * DSN (Delivery Status Notification) support. * RMQS (Remote Message Queue Starting) support (ETRN keyword). * IPv6 support.

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

Install msmtp 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 msmtp using dnf by running the following command:

sudo dnf -y install msmtp

Install msmtp 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 msmtp using yum by running the following command:

sudo yum -y install msmtp

How To Uninstall msmtp on Fedora 34

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

sudo dnf remove msmtp

msmtp Package Contents on Fedora 34

/usr/bin/msmtp
/usr/bin/msmtpd
/usr/lib/.build-id
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/9b37bf3a788898e9bc9c3a5290953b1deacc09
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/65646992da16d297b14ccbd87ae1731bd0c065
/usr/share/doc/msmtp
/usr/share/doc/msmtp/AUTHORS
/usr/share/doc/msmtp/NEWS
/usr/share/doc/msmtp/README
/usr/share/doc/msmtp/THANKS
/usr/share/doc/msmtp/msmtprc-system.example
/usr/share/doc/msmtp/msmtprc-user.example
/usr/share/doc/msmtp/scripts
/usr/share/doc/msmtp/scripts/find_alias
/usr/share/doc/msmtp/scripts/find_alias/find_alias_for_msmtp.sh
/usr/share/doc/msmtp/scripts/msmtpq
/usr/share/doc/msmtp/scripts/msmtpq/README.msmtpq
/usr/share/doc/msmtp/scripts/msmtpq/msmtp-queue
/usr/share/doc/msmtp/scripts/msmtpq/msmtpq
/usr/share/doc/msmtp/scripts/msmtpqueue
/usr/share/doc/msmtp/scripts/msmtpqueue/ChangeLog
/usr/share/doc/msmtp/scripts/msmtpqueue/README
/usr/share/doc/msmtp/scripts/msmtpqueue/msmtp-enqueue.sh
/usr/share/doc/msmtp/scripts/msmtpqueue/msmtp-listqueue.sh
/usr/share/doc/msmtp/scripts/msmtpqueue/msmtp-runqueue.sh
/usr/share/doc/msmtp/scripts/set_sendmail
/usr/share/doc/msmtp/scripts/set_sendmail/set_sendmail.conf
/usr/share/doc/msmtp/scripts/set_sendmail/set_sendmail.sh
/usr/share/doc/msmtp/scripts/vim
/usr/share/doc/msmtp/scripts/vim/README
/usr/share/doc/msmtp/scripts/vim/msmtp.vim
/usr/share/info/msmtp.info.gz
/usr/share/licenses/msmtp
/usr/share/licenses/msmtp/COPYING
/usr/share/locale/de/LC_MESSAGES/msmtp.mo
/usr/share/locale/eo/LC_MESSAGES/msmtp.mo
/usr/share/locale/fr/LC_MESSAGES/msmtp.mo
/usr/share/locale/pt_BR/LC_MESSAGES/msmtp.mo
/usr/share/locale/sr/LC_MESSAGES/msmtp.mo
/usr/share/locale/ta/LC_MESSAGES/msmtp.mo
/usr/share/locale/uk/LC_MESSAGES/msmtp.mo
/usr/share/man/man1/msmtp.1.gz
/usr/share/man/man1/msmtpd.1.gz
/usr/bin/msmtp
/usr/bin/msmtpd
/usr/lib/.build-id
/usr/lib/.build-id/87
/usr/lib/.build-id/87/6ee5b19d9c5c307c631dde6d8bf41b79a01fb7
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/c1ad12d860fec6079d50e295f52aab2dd013bc
/usr/share/doc/msmtp
/usr/share/doc/msmtp/AUTHORS
/usr/share/doc/msmtp/NEWS
/usr/share/doc/msmtp/README
/usr/share/doc/msmtp/THANKS
/usr/share/doc/msmtp/msmtprc-system.example
/usr/share/doc/msmtp/msmtprc-user.example
/usr/share/doc/msmtp/scripts
/usr/share/doc/msmtp/scripts/find_alias
/usr/share/doc/msmtp/scripts/find_alias/find_alias_for_msmtp.sh
/usr/share/doc/msmtp/scripts/msmtpq
/usr/share/doc/msmtp/scripts/msmtpq/README.msmtpq
/usr/share/doc/msmtp/scripts/msmtpq/msmtp-queue
/usr/share/doc/msmtp/scripts/msmtpq/msmtpq
/usr/share/doc/msmtp/scripts/msmtpqueue
/usr/share/doc/msmtp/scripts/msmtpqueue/ChangeLog
/usr/share/doc/msmtp/scripts/msmtpqueue/README
/usr/share/doc/msmtp/scripts/msmtpqueue/msmtp-enqueue.sh
/usr/share/doc/msmtp/scripts/msmtpqueue/msmtp-listqueue.sh
/usr/share/doc/msmtp/scripts/msmtpqueue/msmtp-runqueue.sh
/usr/share/doc/msmtp/scripts/set_sendmail
/usr/share/doc/msmtp/scripts/set_sendmail/set_sendmail.conf
/usr/share/doc/msmtp/scripts/set_sendmail/set_sendmail.sh
/usr/share/doc/msmtp/scripts/vim
/usr/share/doc/msmtp/scripts/vim/README
/usr/share/doc/msmtp/scripts/vim/msmtp.vim
/usr/share/info/msmtp.info.gz
/usr/share/licenses/msmtp
/usr/share/licenses/msmtp/COPYING
/usr/share/locale/de/LC_MESSAGES/msmtp.mo
/usr/share/locale/eo/LC_MESSAGES/msmtp.mo
/usr/share/locale/fr/LC_MESSAGES/msmtp.mo
/usr/share/locale/pt_BR/LC_MESSAGES/msmtp.mo
/usr/share/locale/sr/LC_MESSAGES/msmtp.mo
/usr/share/locale/ta/LC_MESSAGES/msmtp.mo
/usr/share/locale/uk/LC_MESSAGES/msmtp.mo
/usr/share/man/man1/msmtp.1.gz
/usr/share/man/man1/msmtpd.1.gz

References

Summary

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