ThinkSSL🔒 一键申购 5分钟快速签发 30天无理由退款 购买更放心 广告
zabbix邮件报警配置 ![](http://i2.muimg.com/588926/b3dca0e591d14065.png) 根据item定义trigger,在action中需要定义触发条件,报警操作。 ### SMTP配置 #### zabbix server配置为SMTP服务器 ##### 安装postfix ~~~ yum install postfix -y ~~~ ##### 配置文件 /etc/postfix/main.cf `inet_interfaces = localhost` 改为`inet_interfaces = all` ##### 开启postfix ~~~ service postfix start ~~~ ##### 配置iptables,开放端口25 ~~~ iptables -A INPUT -p tcp --dport 25 -j ACCEPT ~~~ #### zabbix Media Type配置 * SMTP server:SMTP主机名,需要能解析到,最好是在/etc/hosts中配置解析 * SMTP helo:SMTP helo 值, 通常情况下是顶级域名,这里使用主机名 * SMTP email: 这个邮件地址会显示到收件人的 From 里 ![](http://i2.muimg.com/588926/c6c624e6546dce5e.png) ### 定义邮件联系人 ![](http://i2.muimg.com/588926/0e25406aea4d3231.png)