nagios使用sendmail发送邮件
1.安装sendmail
yum install -y sendmail*
2.编辑配置
vi /etc/mail.rcset from=mailuser@163.com smtp=smtp.163.comset smtp-auth-user=mailuser smtp-auth-password=xxxxxset smtp-auth=login
3.重启服务
/etc/init.d/sendmail reload
4.测试
echo "nagios test" |mail receive-user@163.com
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。