Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report