How To Install msmtp on CentOS 8
Introduction
In this tutorial we learn how to install msmtp
on CentOS 8.
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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install msmtp.
Install msmtp on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8
To uninstall only the msmtp
package we can use the following command:
sudo dnf remove msmtp
msmtp Package Contents on CentOS 8
/usr/bin/msmtp
/usr/bin/msmtpd
/usr/lib/.build-id
/usr/lib/.build-id/75
/usr/lib/.build-id/75/27429d4962c065f58a9d2eb3eca786e000fe2d
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/f99228f4cd2ef0eb5a971a798adfe09b7c729f
/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/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 CentOS 8 using yum and dnf.