LAMP + Postfix + Dovecot + SquirrelMail email server construction

Source: Internet
Author: User
Tags dovecot squirrelmail
LAMP + Postfix + Dovecot + SquirrelMail: how to build a LAMP environment in RHEL5 was introduced some time ago. today we will introduce how to build a mail server in LAMP, this article is a simple postfix-based email system. The next article will introduce postfix's advanced applications, the architecture of this article is postfix + dovecot + squ LAMP + Postfix + Dovecot + SquirrelMail mail server construction under LAMP

 

Some time ago I introduced how to build a LAMP environment under RHEL5. today I will introduce how to build a mail server under LAMP. This article is about building a simple mail system based on postfix, the next article will introduce the advanced application of postfix. the architecture of this article is postfix + dovecot + squirrelmail under LAMP. the specific building steps are as follows:

I. Compile and install postfix
1. create users (postfix), groups (postfix, postdrop) that run the postfix service ):
[Root @ LW ~] # Tar vzxf postfix-2.6.5.tar.gz // this package can be downloaded from the postfix official website
[Root @ LW ~] # Cd postfix 2.6.5
[Root @ LW postfix2.6.5] # make makefiles \
> 'Ccargs =-DHAS_MYSQL-I/usr/local/mysql/include/mysql-DUSE_SASL_AUTH-DUSE_CYRUS_SASL-I/usr/include/sasl '\
> 'Auxlibs =-L/usr/local/mysql/lib/mysql-lmysqlclient-lz-lm-L/usr/lib/sasl2-lsasl2'
The compilation parameters CCARGS and AUXLIBS have the following functions:
CCARGS parameters: provide additional parameters for the compiler. The "-I" option specifies the directory where the standard additional header files are stored. For example, the header files of mysql and cyrus-sasl are located in the directory/usr/local/mysql/lib/mysql and/usr/include/sasl respectively.
AUXLIBS parameter: indicates an additional function library located outside the standard location. If you need to link SASL, MySQL, or any additional function libraries, and they are not stored in the standard location (/usr/lib/directory), you must specify the path of these function libraries in the AUXLIBS parameter. For example, the library files of mysql and cyrus-sasl are located in the directory/usr/local/mysql/lib/mysql and/usr/lib/sasl2 respectively.
2. Compile and install
[Root @ LW postfix2.6.5] # make & make install
After the "make install" command is executed, you need to set some installation parameters. press enter by default. If the following problems occur,
OK!

 

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.