Postfix mail system cluster

Source: Internet
Author: User


  

postfix mail system cluster Deployment documentation

QQ 332609422

V1.0

Directory

Objective

First, network topology and system principles

Second, IP and host name Planning

Iii. Deployment Steps

Objective

The purpose of this document is to document the form of a mail system cluster that migrates the two-machine hot-standby form of a corporate mailbox server to the LVS load balancer. The main content of the record is the topology used throughout the process, the specific machine name,IP Planning, related services and other content.

First,network topology and system principles


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5A/68/wKiom1T9ADrRvQVAAAFzqbdfHI0020.jpg "title=" QQ picture 20150309100651.png "alt=" Wkiom1t9adrrvqvaaafzqbdfhi0020.jpg "/>


When a user accesses a mailbox, the domain name that is accessed ismail.zhsye.com, access to the mailbox service, mainly3ports, each of which is a80,25,110. LVSThe host provides the Load Balancer service, when the user accesses the service,LVSThe request is assigned to a different mail server based on the algorithm, and the server returns specific results to the user. To ensureLVSno downtime, usingkeepalivedthis software, to achieveLVSof high availability. Two setsLVSmachine, the main preparation, keep normal. Mail host main runpostfix nginx COURIERTCPDit3a service,2The service of the host is consistent in the form of mirroring, while2mount the host computer simultaneouslyOCFSFile system , which allows multiple hosts to read and write at the same time, keeping the files consistent. MYSQLServer Independent, with the other one to doMYSQLmaster and slave, form backup.

Second, IP and host name Planning

192.168.0.63--192.168.0.73

Here are specific IP and service plans for the host:

External service IP 192.168.0.69

LVS host hostname mail-lvs01 ip:192.168.0.63

LVS Standby Machine host name MAIL-LVS02 ip:192.168.0.64

Hardware configuration: Dual-core 4G memory hard disk 100G Division is divided into a root partition and swap partition, the general system is the default.

The above two hosts run the operating system version of CentOS 6 , respectively, running keepalived on both hosts , and running the main LVS on mail-lvs01 by default service.

MAIL host 1 host name Mailserver01 ip:192.168.0.65

MAIL host 2 host name mailserver02 ip:192.168.0.66

Hardware configuration: Four-core 8G memory hard disk 200G partition According to the mirror can be, do not make changes.

above 2 Span style= "font-family: ' Chinese new Wei ';" > The host running operating system is centos 6 64 nginx postfix couriertcpd  simultaneous 2 service, To facilitate support for ocfs file system, You can implement 2

MYSQL host hostname MAIL-MYSQL01 ip:192.168.0.67

MYSQL Standby host name mail-mysql02 ip:192.168.0.68

Hardware configuration: Two-core 4G memory hard disk 200G partition According to mirror come over, do not make changes.

The above 2 hosts run the operating system for CentOS 6 , and the two hosts run MYSQLseparately,mail-mysql01 Run Master MYSQL,mail-mysql02 backup data in the form of master-slave backup to ensure data security

Iii. Deployment Steps

1. mirroring the current messaging system's operating system is Mailserver01,mailserver02,mail-mysql01 mail-mysql02

2. Debug Mail 2 machines, modify IP and MAC address, guarantee 2 Machine can be run at the same time.

3, 2 machine configuration OCFS service, guarantee 2

4, 2 mail host off mysql service, in and ssh and mysql service.

5, mail-mysql01 mail-mysql01 and mail-mysql02 debug between mysql master and slave services ensure consistent data.

6, 2 mysql configuration so that its read and write data from host table, test 3

7. Configuring mail-lvs01 and mail-lvs02, configuring keepalived and LVs Service, after the configuration is complete, test the overall service access situation, through the observation log, analyze the access situation is normal.



                      


This article from the "Practice is true Truth" blog, reproduced please contact the author!

Postfix mail system cluster

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.