zabbix配置邮件发送提醒

一.安装配置sendmail,使ubuntu能发送邮件

 

1.安装2个必安装包

 

Apt-get install sendmail

 

Apt-get install sendmail-cf

 

 

#cat /etc/hosts

 127.0.0.1       mail.qq.com    localhost.localdomain    localhost

 

 

#cat /etc/mail/access 

Connect:localhost.localdomain           RELAY

Connect:localhost                       RELAY

Connect:127.0.0.1

Connect:mail.qq.com                 RELAY

 

 # cat /etc/mail/local-host-names 

mail.qq.com

 

/etc/init.d/sendmail restart

你可能感兴趣的:(zabbix)