1.安装软件包mutt和smstp
opkg update
opkg install msmtp
opkg install mutt
2.编辑/etc/msmtprc文件,内容如下
# Example for a system wide configuration file
# A system wide configuration file is optional.
# If it exists, it usually defines a default account.
# This allows msmtp to be used like /usr/sbin/sendmail.
account default
host xxx.xxx.qq.com #邮件服务器地址
from xxxx@xxxx.com #自己的邮箱地址
auth login #需要登录
tls off #关闭tls
user xxxx@xxxx.com #自己的邮箱用户名
password ********** #自己的邮箱密码
# The SMTP smarthost.
#host mailhub.oursite.example
# Construct envelope-from addresses of the form "user@oursite.example".
#auto_from on
#maildomain ours