In-depth understanding of the distributed Qmail mail system (1)

Source: Internet
Author: User
Tags mx record qmail

DistributedQmailYou may not be familiar with the email system. This article will introduce the installation and configuration of the email system.

I. design purpose

It is suitable for multi-user and large-capacity mail systems and is easy to expand. It provides the mail service redundancy feature.

2. Configure the environment

My test environment uses three PC servers, both use RedHat 6.2, openldap2.0.7, qmail-1.03 and qmail-ldap, respectively run the smtp/pop3 Service, the specific

The configuration is as follows.

192.168.0.19 omni1.i100.com.cn master smtp/pop3 server, dns MX record, mail storage host, qmqp server

192.168.0.5 cocoon.i100.com.cn LDAP server, mail storage host

192.168.0.2 gw2.i100.com.cn email storage host, qmqp server, and smtp/pop3 server

Store johnny emails in the/data/vuser/directory of 192.168.0.19.

Store jacky emails in the/data/vuser/directory of 192.168.0.5.

Store denny emails in the/var/qmail/vuser/directory of 192.168.0.2.

In practice, you can configure mail storage, ldap, and smtp server on different machines.

Iii. Software

Openldap-2.0.7.tgz

Qmail-1.03.tar.gz

Qmail-ldap-1.03-20010301.patch

Ucspi-tcp-0.84.tar.gz

When compiling qmail, remember to compile the support for cluster. Edit the Makefile to reflect your setup. You can change the following

Values: QLDAP-CLUSTER

Compiles the clustering code in. Note: this doesn't mean clustering is on, it just means you _ can _ turn on clustering. Missing

Qmail supports the cluster structure.

Iv. Installation of LDAP and qmail

For the installation of LDAP and qmail, here I will provide my LDAP ldif file:

Dn: dc = i100, dc = com, dc = cn

Objectclass: top

Objectclass: orgnization

Dn: cn = Manager, dc = i100, dc = com, dc = cn

Uid: Manager

Objectclass: qmailUser

Mail: johnnys@cn.solution100.com

Dn: cn = johnny, dc = i100, dc = com, dc = cn

Cn: johnny

Sn: johnny

Objectclass: top

Objectclass: person

Objectclass: inetOrgPerson

Objectclass: qmailUser

Mail: johnny@i100.com.cn

Mailhost: omni1.i100.com.cn

Mailalternateaddress: johnnys@i100.com.cn

Mailmessagestore:/data/vuser/johnny/

Mailquota: 51200

Uid: johnny

Userpassword: hSAMdaZcsdAOI

Dn: cn = jacky, dc = i100, dc = com, dc = cn

Cn: jacky

Sn: jacky

Objectclass: top

Objectclass: person

Objectclass: inetOrgPerson

Objectclass: qmailUser

Mail: jacky@i100.com.cn

Mailhost: cocoon.i100.com.cn

Mailalternateaddress: jacky@i100.com.cn

Mailmessagestore:/data/vuser/jacky/

Mailquota: 51200

Uid: jacky

Userpassword: hSAMdaZcsdAOI

Dn: cn = denny, dc = i100, dc = com, dc = cn

Cn: denny

Sn: denny

Objectclass: top

Objectclass: person

Objectclass: inetOrgPerson

Objectclass: qmailUser

Mail: denny@i100.com.cn

Mailhost: gw2.i100.com.cn

Mailalternateaddress: denny@i100.com.cn

Mailmessagestore:/var/qmail/vuser/denny/

Mailquota: 51200

Uid: denny

Userpassword: hSAMdaZcsdAOI

As you can see above, I saved the emails of the three users to different machines. If there are many users, users starting with a-n and o-z can be stored on different machines.


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.