Zabbix+postfix Mail Alert Configuration notes

Source: Internet
Author: User
Tags mail

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.