Skip to content

Linux 系统发送告警脚本

shell
# yum install mailx
# vi /etc/mail.rc

set from=baojingtongzhi@163.com smtp=smtp.163.com
set smtp-auth-user=baojingtongzhi@163.com smtp-auth-password=123456
set smtp-auth=login