centos8发送邮件给qq邮箱
[root@centos8mini ~]#yum -y install postfix mailx
[root@centos8mini ~]#systemctl enable --now postfix
[root@centos8mini ~]#vi /etc/mail.rc
set from=xxxxxxxxxx@qq.com #收邮件的邮箱
set smtp=smtp.qq.com #邮箱协议
set smtp-auth-user=xxxxxxxxxxxx@qq.com #邮箱帐号
set smtp-auth-password=lkikkxxxxxmgeig #授权码
[root@centos8mini ~]#echo "hello" | mail -s "Title" *********@qq.com