Overview of Mysql installation and qmail operations

Source: Internet
Author: User
Tags domain name server qmail

I have read a lot of articles on qmail and vpopmail Mysql installation on the Internet, but many of them do not have a clear idea, or may have been reproduced from other websites, so today I published my Qmail Vpopmail Mysql installation experience.

Of course, it is done according to the reference summaries, which are always backward and backward. I will summarize them here. The ideas of the people who see this article should be clearer.

The basic steps are as follows:

1. Install Qmail. This step requires several software packages:Qmail Installation Reference:

Http://www.lifewithqmail.org/+ qmail INSTALL under the installation directory; these two need to be combined:

Qmail-1.03-xxx

INSTALL by INSTALL or lifewithqmail in the installation directory of qmail, which is relatively easy. Generally, you can follow the TEST in the qmail directory. deliver tests the qmail sending function. If the test is OK, the qmail installation is half successful. This step is relatively simple and easy to succeed. If it fails, redo it again. But the following is a little complicated.

Ucspi-tcp-xxx

Tcpserver is mainly generated. Qmail uses the tcpserver's resident port smtp to be 25 pop is 110. Like sendmail's listening on port 25, use this package instead of using pop3d in sendmail and inet. conf. Tcpserver only calls the smtp program of qmail.

Daemontools-xxxx

The syscan function in this package is mainly used to automatically start Qmail when the system starts.

Sendmail is in/etc/rc. d/init. d. There is a sendmail Startup Program. syscan is to scan files in the/service directory and execute them in batches (the Linux world is really a human idea, which makes people dizzy ). Qmail is installed in the/service directory with three startup projects: Qmail-send Qmail-smtp Qmail-pop3d.

Qmail-pop3d reference lifewithqmail qmail-pop3d chapter Mysql installation, this is qmail pop function, of course, can also use the original linux pop3 function.

After the above three sets of software are successfully installed, restart the machine and use ps-ax | grep qmail to find three qmail programs. The basic qmail is installed properly. Follow the TEST in the qmail installation directory. receive indicates to test qmail. if the test is OK, Qmail is successfully installed.

There is a Qmail + MySQL on the Network (and PHP with the best combination) of the article, that is not the use of vpopmail, usually now use vpopmail instead of qmail-pop3d, because vpopmail can provide pop3d for multiple domain names, for example, you can provide free mailbox services for multiple domain names of abc.com ppp.com xxx.com, which is an advantage of vpopmail, currently, vpopmail is generally used in combination with MySQL (the best combination with PHP) for installation.

2. Install VPOPMAIL

To download the latest version, I use the development version 5.0, which provides better support for the database. Other supporting software packages require better update. Pay attention to the compatibility of these software packages, the new version does not work normally with the old version.

Here we will introduce the Mysql installation of the source program of .tar.gz.

This step is mainly used in configure configuration: My configuration is as follows:

. /Configure -- enable-MySQL (the best combination with PHP) = y -- enable-MySQL (the best combination with PHP) -replication = y -- enable-default-domain = your missing domain Name

First, we need to activate the MySQL database (the best combination with PHP). Why should we set a domain name missing? If this parameter is not set, you need to change the user name to "user name % domain name" when using pop3 software such as foxmail to receive emails, which may cause inconvenience. At the same time, ensure that domain names are missing in/var/qmail/control/locals.

The vpopmail installation directory is determined based on the directory set by your user name vpopmail. Generally, it is in the/home directory. If you want to change other directories, you need to change the directory of the user name vpopmail, in linux userconf, you can change the value by using the command line.

After installing vpopmail, use/home/vpopmail/bin/vadddomain to add a domain name. You need to enter the password when adding a domain name. Remember to use this domain name and password when logging on to qmailadmin. Some online articles have incorrect interpretations of the password here.

After installing qmailadmin, the most important step, you need to combine vpomail and qmail, is to replace vpopmail qmail-pop3d, as long as you modify the/var/qmail/supervise/qmail-pop3d/run this file. As follows:

/Usr/local/bin/tcpserver-H-R 0 pop-3/var/qmail/bin/qmail-popup your POP server/vpopmail/bin/vchkpw/var /qmail/bin/qmail-pop $

The above is IN a row, where your POP server must be set by yourself, usually IN the DNS server's corresponding domain name library "in mx your Domain Name Server ".

3. Install Qmailadmin

You can use qmailadmin to add and edit mail users and check whether your qmail vpopmail is running normally.

Autorespond ezmlm required to install qmailadmin (Database Mail List supported ).

The configure parameter for installing qmailadmin in Mysql:

./Configure -- enable-cgibindir = your cgi Directory -- with-htmllibdir =/html root directory/qmailadmin-enable-htmldir =/html root directory

Your cgi absolute path directory is used to run http: // your domain name/your cgi Directory/qmailadmin from the browser

It is generally cgi-bin,

After installing qmailadmin in Mysql, you can open qmialadmin in the browser. You need to enter the domain name and password, as mentioned above in vaddadomain.

The last step is sending and receiving mail test. Do not forget to restart the machine first.

Related Article

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.