#service mysqld restart //重新启动一下mysql数据库
#tar zxf extman-0.2.5.tar.gz
#cd extman-0.2.5/docs
#mysql -u root -p123456 < extmail.sql //导入extmail.sql脚本,root用户登入数据库密码为123456
#mysql-u root -p123456 < init.sql //导入init.sql脚本
|
#tar jxf courier-authlib-0.60.2.tar.bz2
#cd courier-authlib-0.60.2
#./configure --prefix=/usr/local/courier-authlib --without-stdheaderdir --with-authmysql --with-redhat --with-mysql-libs=/usr/local/mysql/lib/mysql --with-mysql-includes=/usr/local/mysql/include/mysql
#make && make install
#make install-configure
|
#vi /etc/ld.so.conf
/usr/local/courier-authlib/lib/courier-authlib
#ldconfig
|
#cd /usr/local/courier-authlib/etc/authlib
#vi authdaemonrc
authmodulelist=“authmysql” //需要修改的配置项
authmodulelistorig="authmysql" //需要修改的配置项
#chmod -R 755 /usr/local/courier-authlib/var/spool/authdaemon
|
#cp courier-authlib.sysvinit /etc/init.d/courier-authlib //courier-authlib.sysvinit文件位于源码包解压后的courier-authlib-0.60.2目录下
#chmod 755 /etc/rc.d/init.d/courier-authlib
#service courier-authlib start
#chkconfig --level 35 courier-authlib on
|
#vi /usr/lib/sasl2/smtpd.conf
pwcheck_method: authdaemond
authdaemond_path: /usr/local/courier-authlib/var/spool/authdaemon/socket
|
#mkdir -p /mailbox/extmial.org/postmaster/Maildir
#chown -R postfix:postfix /mailbox
#killall -9 dovecot //如果dovecot服务已启动,先执行此步骤
#dovecot
|
# cd Unix-Syslog-1.1
# perl Makefile.PL
#make && make install
|
# cd ../DBI-1.607
# perl Makefile.PL
# make && make install
|
# cd ../DBD-mysql-4.011
# perl Makefile.PL
#make && make install
|
# tar zxf extmail-1.0.5.tar.gz -C /usr/local/apache2/htdocs
# cd /usr/local/apache2/htdocs
# mv extmail-1.0.5 extmail
|
# cd /extmail
# chown -R postfix:postfix cgi
|
# cp webmail.cf.default webmail.cf
# vi webmail.cf //需要修改的配置项如下图
|
# tar zxf GD-2.41.tar.gz
# tar zxf File-Tail-0.99.3.tar.gz
|
# cd GD-2.41
# perl Makefile.PL
# make && make install
|
# cd ../File-Tail-0.99.3
# perl Makefile.PL
# make && make install
|
# rpm -ivh rrdtool-1.2.23-3.e15.i386.rpm
# rpm -ivh rrdtool-perl-1.2.23-3.e15.i386.rpm
|
# tar zxf extman-0.2.5.tar.gz -C /usr/local/apache2/htdocs
# cd /usr/local/apache2/htdocs
# mv extman-0.2.5 extman
|
# chown -R postfix:postfix /usr/local/apache2/htdocs/extman/cgi
|
# mkdir /tmp/extman
# chown -R postfix:postfix /tmp/extman
|
# echo "/usr/sbin/mailgraph-init start" >> /etc/rc.d/rc.local
# echo "/usr/sbin/qmonitor-init start" >> /etc/rc.d/rc.local
|