1. Apt-get Install mutt MSMTP
2. ~/.MUTTRC & ~/.MSMTPRC is the current user's configuration information, if not added will use the global configuration:/ETC/MUTTRC (MSMTPRC temporarily cannot find the file, do not know why?)
3. VI ~/.MUTTRC
At the end add:
Set sendmail="/usr/bin/msmtp"set Use_from=yesset realname=" Chen_dong " # #发件人名字setfrom =chen[email protected] # #发件人地址set Envelope_from=yes
4. VI ~/.MSMTPRC, then modify the permissions of this file to 600
587/etc/ssl/certs/ca-~/. Msmtp.logaccount default:freemail
5. Testing
echo "Hello World" | Mutt-s "title" [Email protected]
http://muttrcbuilder.org/
Http://www.mutt.org/doc/manual/manual-6.html
Two of the above sites are related to muttrc files.
Http://msmtp.sourceforge.net/doc/msmtprc.txt
The above site is a sample file for MSMTPRC
Using MUTT+MSMTP to post messages on the Linux command line interface