apt-get install mutt msmtp
cd /root
vim .msmtprc

host smtp.xxxx.com
port 25
from [email protected]
auth login
tls off
user [email protected]
password xxx
logfile /var/log/msmtp.log

vim .muttrc 
set sendmail="/usr/bin/msmtp"
set use_from=yes
set realname="xxxname"
set from="[email protected]"
set envelope_from=yes
set rfc2047_parameters=yes
set charset="utf-8