编辑vim /etc/mail.rc
set from=xxxxx@qq.com #发送邮箱地址
set smtp=smtp.qq.com
set smtp-auth-user=xxxxx@qq.com #发送邮箱地址
set smtp-auth-password=邮箱密码 #开通smtp时的密码
set smtp-auth=login
重新启动systemctl restart postfix.service
编辑vim /etc/mail.rc
set from=xxxxx@qq.com #发送邮箱地址
set smtp=smtp.qq.com
set smtp-auth-user=xxxxx@qq.com #发送邮箱地址
set smtp-auth-password=邮箱密码 #开通smtp时的密码
set smtp-auth=login
重新启动systemctl restart postfix.service