[root@test.lixian.fun ~]# vim /etc/s-nail.rc
###for 163邮箱
set from="xxxxx@163.com" #发件地址
set smtp="smtps://smtp.163.com:465" #smtp服务器
set smtp-auth-user="xxxxxx@163.com" #登录发件地址
set smtp-auth-password="xxxx" #授权码
set smtp-auth=login #登录方式,默认是login,也可以改成CRAM-MD5或PLAIN方式
###for outlook
set from="xxxx@outlook.com"
set smtp="outlook.office365.com:587"
set smtp-auth-user="xxxx@outlook.com"
set smtp-auth-password="xxxx" #明文密码
set smtp-use-starttls #加密方式
set ssl-verify=ignore # 忽略ssl认证
set smtp-auth=login
###for QQ mail
set from="xxx@qq.com"
set smtp="smtps://smtp.qq.com:465"
set smtp-auth-user="xxx@qq.com"
set smtp-auth-password="ahkphxxabcbshabbga" #QQ邮箱授权码
set smtp-auth=login
I may need your help. I tried many ways but couldn't solve it, but after reading your article, I think you have a way to help me. I'm looking forward for your reply. Thanks.