Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to install and configure in CentOS6 and use mutt+msmtp to send mail

Shulou Source: shulou.com Published: 2022-06-01 08:20:43 10月05日 Update

This article mainly introduces "how to install configuration in CentOS6 and use mutt+msmtp to send mail", in daily operation, I believe many people have doubts on how to install configuration in CentOS6 and use mutt+msmtp to send mail. Xiaobian consulted all kinds of materials and sorted out simple and easy to use operation methods. I hope to answer your doubts about "how to install configuration in CentOS6 and use mutt+msmtp to send mail"! Next, please follow the small series to learn together!

If you want to send emails to foreign countries under CentOS system, you need to configure a series of tools such as sendmail+dovecot. Actually need not so troublesome, want mutt+msmtp to be able to realize the function that sends mail to outland only.

This article is based on CentOS6 64bit

1, install configuration msmtp

The code is as follows:

$ yum install gcc gcc-c++ gnutls gnutls-devel gnutls-utils openssl openssl-devel libidn libidn-devel -y

$ wget http://sourceforge.net/projects/msmtp/files/msmtp/1.4.32/msmtp-1.4.32.tar.bz2

$ tar -jxvf msmtp-1.4.32.tar.bz2

$ cd msmtp-1.4.32

$ ./ configure --prefix=/usr/local/msmtp

$ cd msmtp-1.4.32

$ make && make install

$ mdkir /usr/local/msmtp/etc

generate a configuration file

The code is as follows:

$ cat >>/usr/local/msmtp/etc/msmtprc>/etc/Muttrc

Tags: Configuration email code files Zhongan mailbox learning location content function external domain more certificate Chinese help support verification practical no accident next Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Shulou Tech Info MariaDB Microsoft Xiaomi