How to install and configure in CentOS6 and use mutt+msmtp to send mail
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