|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们!Mail办事器(Postfix+Dovecot+Extmail+Extman基于假造账号)
实行拓扑
LAMP(Linux+Apache+MySQL+PHP)情况搭建
起首必要搭建LAMP情况
装置Apache
[root@mailapr-1.4.6]#tar-zxvfapr-util-1.5.1.tar.gz-C/usr/local/src/
[root@mailapr-1.4.6]#cd/usr/local/src/apr-1.4.6/
[root@mailapr-1.4.6]#./configure--prefix=/usr/local/apr
[root@mailapr-1.4.6]#make
[root@mailapr-1.4.6]#makeinstall
[root@mailsrc]#cdapr-util-1.5.1/
[root@mailapr-util-1.5.1]#./configure--with-apr=/usr/local/apr/bin/apr-1-config
[root@mailapr-util-1.5.1]#make
[root@mailapr-util-1.5.1]#makeinstall
[root@mailcdrom]#cd/mnt/cdrom/Server/
[root@mailServer]#rpm-ivh/mnt/cdrom/Server/pcre-devel-6.6-2.el5_1.7.i386.rpm
装置http
[root@mail~]#tar-jxvfhttpd-2.4.4.tar.bz2-C/usr/local/src/
[root@mail~]#cd/usr/local/src/httpd-2.4.4/
[root@mailhttpd-2.4.4]#./configure--prefix=/usr/local/apache--sysconfdir=/etc/httpd--enable-so--enable-ssl--enable-rewrite--with-apr=/usr/local/apr/bin/apr-1-config--with-apr-util=/usr/local/apr/bin/apu-1-config--with-pcre-with-z--enable-mpms-shared=all
[root@mailhttpd-2.4.4]#make
[root@mailhttpd-2.4.4]#makeinstall
[root@mail~]#cd/etc/init.d/
[root@mailinit.d]#chmoda+xhttpd
[root@mailinit.d]#ln-s/usr/local/apache/include//usr/include/apche
[root@mailinit.d]#vim/etc/man.config
装置mysql
[root@mail~]#groupaddmysql
[root@mail~]#useradd-r-gmysqlmysql
[root@mailsrc]#cd/usr/local/
[root@maillocal]#ln-s/usr/local/src/mysql-5.5.15-linux2.6-i686/mysql
[root@mailmysql]#chown-Rmysql.
[root@mailmysql]#chgrp-Rmysql.
[root@mailmysql]#scripts/mysql_install_db--user=mysql
[root@mailmysql]#chown-Rroot.
[root@mailmysql]#chown-Rmysqldata
[root@mailmysql]#cpsupport-files/my-medium.cnf/etc/my.cnf
[root@mailmysql]#cpsupport-files/mysql.server/etc/init.d/mysqld
[root@mailmysql]#servicemysqldstart
StartingMySQL.....[OK]
[root@mailmysql]#chkconfig--addmysqld
设置mysql情况变量
[root@mailmysql]#vim/etc/profile
[root@mailmysql]#./etc/profile
创立mysql.conf文件并增加库文件路径
[root@mailmysql]#vim/etc/ld.so.conf.d/mysql.conf
/usr/local/mysql/lib
[root@mailmysql]#ldconfig
处置头文件
[root@mailmysql]#ln-sinclude/usr/include/mysql
给mysql数据库增加暗码
装置php
[root@mailphp-5.4.13]#tar-jxvfphp-5.4.13.tar.bz2-C/usr/local/src/
[root@mailphp-5.4.13]#./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache/bin/apxs--with-mysql=/usr/local/mysql--with-mysqli=/usr/local/mysql/bin/mysql_config--enable-mbstring--enable-xml--with-png-dir--with-png--with-jpeg-dir--with-zlib--enable-mbstring--with-freetype-dir
[root@mailphp]#make
[root@mailphp]#makeinstall
编纂/etc/profile
库文件处置
[root@mailphp]#ldconfig
处置头文件
[root@mailphp]#ln-s/usr/local/php/include//usr/include/php
编纂apache的设置文件撑持php模块
上面举行exymail的搭建
本次次要来搭建北京区域extmail
封闭开辟平台的sendmail功效,由于要搭建extmail。
变动主机名和dns指向
封闭sendmail并设为开构造闭
上传搭建extmail所必要的软件包
postfix-2.8.2.tar.gz
courier-authlib-0.63.0.tar.bz2
Unix-Syslog-0.100.tar.gz
extmail-1.2.tar.gz
extman-1.1.tar.gz
翻开saslauth办事设为开机启动
装置其他软件包
Yuminstallmysql-devel
装置postfix
[root@host~]#tar-zxvfpostfix-2.8.2.tar.gz-C/usr/local/src/
[root@host~]#cd/usr/local/src/postfix-2.8.2/
[root@hostpostfix-2.8.2]#group-g2525postfix
|
|