https://blog.csdn.net/qq_20732247/article/details/107089175
sudo vim /etc/ssmtp/ssmtp.conf
----------------------------------
# 添加以下内容
root=username@163.com
mailhub=smtp.163.com:465
AuthUser=username@163.com
AuthPass=xxxxxxxx # 这个密码不是邮箱的密码,而是网易邮箱的授权码
UseTLS=Yes
----------------------------------
sudo vim /etc/ssmtp/revaliases
----------------------------------
# 添加以下语句
jiaxin:username@163.com:smtp.163.com:465 # jiaxin是当前电脑的用户名
----------------------------------
————————————————