System environment: centos6.3 x64
zabbix:zabbix-2.06 (Simplified Chinese)
Postfix: System with Self
I. Configuring native postfix with Zabbix mail delivery
1. If the machine is installed SendMail, it must be closed and unloaded.
# Service SendMail Stop
# chkconfig SendMail off
# rpm-e SendMail--nodeps
2. Install postfix (centos6.3 default yum source, default Postfix system with)
# yum Install Postfix-y
To change the parameters in the postfix configuration file
# POSTCONF-E myhostname=mail.zabbix.example.cn
# POSTCONF-E myorigin=zabbix.example.cn
# POSTCONF-E mydomain=zabbix.example.cn
# POSTCONF-E Mydestination=localhost
# POSTCONF-E MYNETWORKS=127.0.0.0/8
Configuration completion adds a parameter to the end of the/ETC/POSTFIX/MAIN.CF line
# vi/etc/hosts
Add a line:
------------
127.0.0.1 mail.zabbix.example.cn zabbix.example.cn
------------
Restart the Postfix service
# service Postfix Restart
Test send a message to the public network mailbox
# Mail Abc@example.com
Dynamically view sent mail logs
# tail-f/var/log/maillog
If the remote mailbox is received, the configuration succeeds
Two. Configure Zabbix alarm send mail to remote mailbox
1. Enter: zabbix-Management-Warning media type, click on the top right corner to create a warning media type
As shown in the diagram configuration: