[root@localhost jinhu]# wget http://sourceforge.net/projects/msmtp/files/msmtp/1.4.28/msmtp-1.4.28.tar.bz2

[root@localhost jinhu]# tar xvf msmtp-1.4.28.tar.bz2

[root@localhost jinhu]# cd msmtp-1.4.28

[root@localhost msmtp-1.4.28]# ./configure --prefix=/usr/local/msmtp

[root@localhost msmtp-1.4.28]# make && make install

[root@localhost msmtp]# cd /usr/local/msmtp

[root@localhost msmtp]# mkdir etc

[root@localhost msmtp]# cd etc/

[root@localhost etc]# vim msmtprc

account default
host smtp.163.com
port 25
from tiger1121@163.com
auth login
tls off
user tiger1121@163.com
password mima123457.
logfile /var/log/mmlog


[root@localhost etc]# /usr/local/msmtp/bin/msmtp 1908616619@qq.com
sdfsdfsdfsdfsdsdf
sdfsdfsd

[root@localhost etc]# yum install mutt

[root@localhost etc]# more /etc/Muttrc
set sendmail="/usr/local/msmtp/bin/msmtp"
set use_from=yes
set realname="tiger1121@163.com"
set editor="vim"

[root@localhost etc]# echo "testmail" |mutt -s "zhengwen" 1908616619@qq.com