标签:code 配置 lan user string use xxxxx from yum
安装yum install mailx -y
查询配置文件 rpm -qc mailx
/etc/mail.rc
配置配置文件set from=626746XXX@qq.com
set smtp=smtps://smtp.qq.com:465
set smtp-auth-user=626746XXX@qq.com
set smtp-auth-password=xxxxxxxx
set smtp-auth=login
set ssl-verify=ignore
set nss-config-dir=/etc/pki/nssdb/
测试发送mail -s "check-rsync-$(date +%F)" 526195xxx@qq.com < /backup/check.txt
标签:code 配置 lan user string use xxxxx from yum
原文地址:https://www.cnblogs.com/xiaoyunhui/p/14131056.html