apt-get install mutt msmtp cd /root vim .msmtprc host smtp.xxxx.com port 25 from xxx@163.com auth login tls off user xxx@163.com password xxx logfile /var/log/msmtp.log vim .muttrc set sendmail="/usr/bin/msmtp" set use_from=yes set realname="xxxname" set from="xxxx@163.com" set envelope_from=yes set rfc2047_parameters=yes set charset="utf-8