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!