飛書郵箱報警設置
- vi /etc/mail.rc
set ssl-verify=ignore
set nss-config-dir=/etc/pki/nssdb
set [email protected]
set smtp=smtps://smtp.feishu.cn:465
set [email protected]
set smtp-auth-password=xyxyxyx123456
set smtp-auth=login
- 獲取郵件服務器證書
echo -n " " | openssl s_client -connect smtp.feishu.cn:465 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFIICATE-/p' > /etc/pki/nssdb/feishu.crt
- 把證書添加到受信任表:
certutil -A -n 'feishu' -t "P,P,P" -d /etc/pki/nssdb -i /etc/pki/nssdb/feishu.crt