Qmail Knowledge Base column Introduction

Source: Internet
Author: User
Qmail Knowledge Base column introduction-Linux Enterprise Application-Linux server application information. The following is a detailed description. Editor's case:

I have posted dozens of Qmail articles in the knowledge base. I am sure you are familiar with this article. The information you see is basically the most complete information available on the Chinese site. Some of the content is just integrated from authoritative foreign expert works. The content covers the content from Qmail installation to basic configuration, system settings in complex network environments, and a few secondary development tasks. It can be said that if you install and configure the Qmail system based on the articles in this column, and then refer to the FAQ, you can handle the general situation.

Okay, let's say it back.

First, I will try again to introduce qmail.

Qmail was launched to replace the standard MTA (also called the mail transmission agent) program such as sendmail. It is designed to provide a secure, stable, and efficient and concise email system. Because old-fashioned sendmail has many defects, even though its authors keep fixing it.

What are the advantages of qmail:

* Security ---- Qmail divides the E-mail processing process into multiple sub-processes, and tries to avoid running as Root users. In addition, Qmail prohibits direct sending to privileged users (such as Root and Deamon.

* Reliable ---- direct delivery of Qmail ensures that E-mail will not be lost during delivery. Qmail also supports a new and more reliable mailbox format, Maildir, to ensure that the entire mailbox is not damaged when the system suddenly crashes.

* Efficient ---- running on Pentium BSD, Qmail can easily deliver 0.2 million emails every day.

* Simple ---- Qmail is much smaller than other Internet Mail systems. It implements Forwarding, Alias, and Maillist functions through a unified forward mechanism. Qmail uses simple and efficient queues to process delivery. Qmail-SMTPD can be started by Inetd, saving some resources.

Qmail is compared with other email systems. It must be noted that A indicates features, B Indicates ease of configuration, C Indicates performance, D Indicates alias management capabilities, and E Indicates compatibility, F indicates security. The higher the score, the better the feature. The overall score reflects the overall level of the email software.

Product Name rating A B C D E F

Exim 79 4.0 3.9 4.1 3.9 3.9 4.0
IMAP Server 5 2.5 2.8 2.8 2.8 1.8 3.2 1.8
Maildrop 5 1.8 1.8 1.8 1.8 1.8 1.8 1.8
OpenMail 5 2.5 3.8 2.0 1.8 2.6 2.8 2.2
Postfix 24 4.4 4.1 4.7 4.7 4.0 4.4
Qmail 192 4.4 4.3 4.2 4.7 4.4 4.1 4.7
Sendmail 191 4.0 4.6 3.0 4.1 4.2 4.6 3.7
Smail 17 3.1 2.9 3.3 2.9 2.9 3.4

The evaluation is from the LinuxCare site. For more information, see

This evaluation is based on the feedback of netizens and software users and is representative. It can be seen that qmail and postfix have obvious advantages. However, postfix does not provide pop3 services. Qmail provides complete services. In terms of development, postfix has better scalability and programming interfaces. In addition, as far as I know, Silicon Valley requires the most qmail management capabilities when hiring system administrators. Administrators with rich knowledge of qmail, generally with an annual salary of 10 ~ About $0.12 million is attractive!

Due to the use of Maildir, qmail avoids the inability to lock shared files in NFS, making qmail easy to expand in large capacity, and implements a 1 million-level email system. 163 and other popular domestic systems are built in this way. It can not only work with databases, but also add LDAP support, so that qmail has a long lifeline.

To master such an excellent system, we must first learn to install and configure correctly.

Qmail supports two installation modes:

I. Use a Linux User as an email account. Here is a wonderful article by Ideal, an engineer from this site:

Qmail uses the System user as the mail account's installation and configuration

Of course, this is not the method recommended by qmail. Generally, try to use a database to support email accounts.

Ii. using Mysql (typical) to support qmail mail account setting not only solves the Theoretical Upper Limit of qmail system accounts, but also supports the configuration of virtual hosts, it's tempting to create your own ISP email server. Here are:

Ideal's work: Using vpopmail to manage the database of qmail mail accounts
The masterpiece of grind, an engineer on this site: My qmail Installation Process
My work: Step yb Step installation of qmail

In addition, articles on qmail's initial installation include:

Installation, simple configuration, and use of the Qmail System
Qmail installation and configuration
Separate qmail mail users from system users

There is no difference between qmail on other platforms and Linux. Here we have articles on FreeBSD and Solaris:

Install qmail in 10 steps below Solaris2.6
FreeBSD qmail HOWTO for FreeBSD

However, after careful comparison, you will find that the process is the same.

After the installation is complete, it does not mean that all work is finished. Correctly configuring your qmail system can greatly improve the security of the system. In particular, qmail can effectively solve SMTP mail spam and other problems:

My work: added the smtp User authentication function for Qmail.

Ideal adult: full solution to prevent misuse of mail relay in Qmail

Mail management-VmailMgr

In fact, qmail uses a large number of small software to implement lightweight and flexible systems. Messages are transmitted in a UNIX pipeline. Maybe this is why qmail will succeed. UNIX is the only way to survive decades of development. In this regard, sendmail was not appropriate in its initial design. It encapsulates all the functions in a program, the problem is also gradually exposed as the software is used-the tightly coupled structure makes it extremely difficult to maintain and modify. However, the loose coupling structure of qmail is not a disadvantage. At least, because of too many programs, each program may have undiscovered vulnerabilities, and the cost of fixing these vulnerabilities may not be lower than that of a single program. The following are known:

255.5checkpw Qmail Remote Password Acquisition Vulnerability

Vpopmail/vchkpw has a remote overflow vulnerability, allowing intruders to remotely obtain root privileges.

Problems in Vpopmail 3.4.11

These programs are required when configuring the qmail user authentication function. We recommend that you update your software version as soon as possible. Maintain version tracking. If necessary, join the discussion group.

In addition, qmail also supports log management. When you analyze problems, log files can be a useful ASSISTANT:

Complete Solution for smtp and pop services and related logs of qmail

Qmail-based Mail System Management suggestions

Another attraction of qmail is that it can be used for secondary development and web applications on the basis of existing systems. A typical existing web application is qmailadmin. This is a web-based qmail manager that can reliably manage qmail accounts and virtual domain names. Thanks again to Ideal, it has contributed a lot to every column of qmail, this includes the qmail web Application Section and the FAQ section to be mentioned later.

Ideal's article:

One of qmail mail account web management using qmailadmin

Use qmailadmin to manage qmail mail account web II

Use vqsignup for web-based email account application

Of course, qmail has many web applications. For example, sqwebmail is a qmail-based webmail software written in php and is suitable for small enterprises.

After talking about so many qmail configurations, let's talk about the working principles and related knowledge of qmail.

In qmail, the core technology is the mail queue management function. Please refer to my article.

How Qmail queues work

For qmail, the IMAP program does not appear in the Standard installation package. Therefore, using the third-party IMAP software can make qmail a versatile player on the mail server:

Mail storage mode-Courier

Qmail supports the standard SMTP protocol and provides a faster protocol-QMTP. This is a dedicated mail sending protocol for qmail, which is faster and more stable. You can directly listen on port 25 instead of SMTP. Its introduction:

QMTP

Here, we also provide a document to briefly describe various qmail software modules. And express the qmail workflow in the form of an image. Although the materials are in English, I believe most people can understand them.

The-big-qmail-picture-103-a4

This topic also collects a large number of questions and answers from the Aid Forum. It also summarizes some materials in the form of FAQs by referring to some foreign discussion groups and classifies them as follows:

Installation: Qmail installation setup FAQ 1
Qmailadmin installation configuration problem set 1
Qmailadmin installation configuration problem set 1

Configuration Management:
Qmail domain name FAQs
Qmail domain name Question 2
Qmail domain name issue 3
Qmail SMTP sending settings FAQ 1
Qmail user verification question set 1
QMail management skills set 1
Qmail pop3 service configuration question set 1
Problems related to setting Maildir in Qmail
It takes more than 20 minutes for qmail to send emails to itself. Why?

Comprehensive Skills:
Qmail tips and tips
Qmail FAQ
Development:
Qmail

The above is all the information in our column. If you find any errors in this column, I hope you will kindly correct them. You are also welcome to send me a letter directly. Originally, I was planning to translate qmail's "Bible" -- Life With Qmail. This is a good article, as well as an article about qmail's establishment of a large-capacity email system-Life With qmail and LDAP, and the anti-spam information under qmail. However, time is always insufficient. Sorry, I have to wait. You are welcome to contribute your brilliant materials to this topic and our website.

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.