The postfix version of the current system is postfix-2.6.6-2.2.el6_1.x86_64
Get the new Postfix package postfix-2.11.0.tar.gz
Unzip CD postfix-2.11.0
If there is a. spec file can be packaged into a package, it is convenient find-name ' *.spec '
Vim Install//can view Help for installation upgrade
Locate the key row, generate the compiled file, compile the make-f makefile.init makefiles the missing library file, install the library file.
Yum Install Db*-devel-y
Recompile make-f makefile.init makefiles
You can view the services and plugins that are supported by the Mail service
Postconf-a
Postconf-a
Postconf-m
Make Tidy//clear compilation of generated temporary files
CD readme_files/
Less Mysql_readme//view compile Help for MYSQL under mail
RPM-QL mysql-devel//View MySQL's compilation/library path
/usr/include/mysql/sslopt-case.h
/usr/lib64/mysql/libmysqlclient.so
Mkae Tidy
Make-f Makefile.init makefiles Ccargs represents a macro. Used to replace the default value in Makefile ' Ccargs=-dhas_mysql-i/usr/include/mysql '//-i path represents the search header file in the specified path
-lz means searching for libz.so or LIBZ.A, which is abbreviated, only one z is written, and Lmysqlclient is LIBMYSQLCLIENT.SO/LIBMYSQLCLIENT.A
' Auxlibs=-l/usr/lib64/mysql-lmysqlclient-lz-lm '
Make upgrade//compile finished
Postfix stop
Postfix start
POSTCONF-M//upgrade correct will see MySQL
Postconf-n//Can view some parameters of mail
POSTCONF-E Inet_interfaces=all//Everyone can use the Mail service postfix reload//Reload
Postfix stop postfix start netstat-antple//view port whether everyone can use