Install and configure qmail + LDAP instances in Linux

Source: Internet
Author: User
Tags openldap qmail
In Linux, qmail + LDAP is used to install and configure the instance-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Currently, there are not many qmail + LDAP configurations on the Internet, and most of them are in English. The configuration of qmail and openldap does not have detailed configuration documents. The qmail + LDAP server was configured some time ago due to the working relationship. Now we will sort it out for your reference. I hope this will help you.
Qmail is an Internet Mail Transfer Agent (MTA) based on a UNIX-like operating system ). My installation environment is linux7.1. the kernel is 2.4.2, gcc version 2.96, and all components are installed.
Installation Steps
1. Operating System:
Red Hat Linux 7.1 kernel 2.4.2 gcc 2.96
2. Required software packages:
Qmail-1.03.tar.gz (http://www.qmail.org)
Ucspi-tcp-0_88_tar.gz (http://cr.yp.to/ucspi-tcp.html)
Checkpassword-0_90_tar.gz (http://cr.yp.to/checkpwd.html)
Qmail-ldap-1_03-20010301_patch.gz (http://www.nrg4u.com /)
Openldap-2_0_7.tgz (http://www.openldap.org)
Daemontools, ftp://cr.yp.to/daemontools/daemontools-0.70.tar.gz
3. Host IP address and domain name configuration, in this example:
IP: 172.18.6.111
Domain Name: longshine.com
4. System requirements
5. Installation Steps
Copy all packages to be installed to the/usr/local/src/qmail Directory Project.
Mkdir-p/usr/local/src/qmail
Mv * .tar.gz/usr/local/src/qmail
Next, Unmount and install the following steps to unmount these packages
Su-
Umask 022
Cd/usr/local/src/qmail
Tar zxvf qmail-1.03.tar.gz
Tar xvf ucspi-tcp-0.88.tar.gz
Tar zxvf daemontools-0.70.tar.gz
Tar zxvf checkpassword-0.90.tar.gz
The unwrapped package should be in the qmail-1.03, ucspi-tcp-0.88, daemontools-0.70 and checkpassword-0.90 directory and enter the qmail directory.
Cd qmail-1.03
Create an appropriate installation directory
Because the qmail installer generates the required sub-directories, you only need to generate the "home" directory required for installation:
Mkdir/var/qmail
Ln-s/usr/man/var/qmail/man
Mkdir/etc/qmail
Ln-s/etc/qmail/var/qmail/control
Ln-s/usr/sbin/var/qmail/bin
Generate users and groups required for qmail Installation
# Groupadd nofiles
# Useradd-g nofiles-d/var/qmail/alias
# Useradd-g nofiles-d/var/qmail qmaild
# Useradd-g nofiles-d/var/qmail qmaill
# Useradd-g nofiles-d/var/qmail qmailp
# Groupadd qmail
# Useradd-g qmail-d/var/qmail qmailq
# Useradd-g qmail-d/var/qmail qmailr
# Useradd-g qmail-d/var/qmail qmails
Compile and install
Now you can compile and install qmail:
Make setup check
After the compilation and installation are complete, you must configure the DNS. If the DNS configuration is correct, run the following command:
./Config
If config cannot find the host name in DNS, run the config-fast script:
./Config-fast longshine. com
Qmail is now installed. The following describes how to start and configure qmail.
Install ucspi-tcp
Go to the ucspi-tcp directory:
Cd/usr/local/src/qmail/ucspi-tcp-0.88
Make
Make setup check
In this way, ucspi-tcp is installed.
Install daemontools

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.