I. Environment
System CentOS 6.4x64 Minimized installation
Two. Installing MSMTP
#下载软件包 [[email protected] ~]# wget http://sourceforge.net/projects/msmtp/files/msmtp/1.4.30/msmtp-1.4.30.tar.bz2/ Download[[email protected] ~]# tar xf msmtp-1.4.30.tar.bz2 [[email protected] ~]# CD Msmtp-1.4.30[[email protected] msmtp- 1.4.30]#./configure--prefix=/usr/local/msmtp[[email protected] msmtp-1.4.30]# make && make install
Creating a configuration file
[Email protected] ~]# mkdir/usr/local/msmtp/etc[[email protected] ~]# Cat/usr/local/msmtp/etc/msmtprcaccount Defaulthost smtp.163.com #发件箱邮件服务器地址port 25from [email protected] #从哪个邮箱发出auth LOGINTLS offuser [email Protected]password Aisin_giorologfile/var/log/mmlog
Three. Installing Mutt
[[email protected] ~]# Yum install mutt-y# edit configuration file [[email protected] ~]# vim/etc/muttrcset sendmail= "/usr/local/msmtp/bin /msmtp "Set Use_from=yesset realname=" [email protected] "set editor=" Vim "
Test
[Email protected] ~]# echo "Testmail" | Mutt-s "Ceshi" [email protected][[email protected] ~]# echo "Ceshi" |mutt-s "Hello" [email protected]-a/etc/fstab #这里的 -a refers to adding an attachment, if it is multiple attachments, add a few-a file name
This article is from the "ly36843" blog, please be sure to keep this source http://ly36843.blog.51cto.com/3120113/1672959
MUTT+MSMTP Mail Client Configuration