#yum -y install perl-devel gd-devel
tar
zxvf extmail-1.2.
tar
.gz -C
/usr/src/
#/usr/src/extmail-1.2/tools/pkg-stats.sh //执行这条命令后会列出需要安装的软件包,使用
下面的perl命令将没有的安装包安装即可
#perl -MCPAN -e shell
#>install 安装包的名字
#>exit
yum -y
install
perl-CGI perl-DB_File perl-DBD-MySQL perl-Crypt-PasswdMD5
tar
zxvf Unix-Syslog-1.1.
tar
.gz -C ./
cd
Unix-Syslog-1.1
perl Makefile.PL
make
test
make
install
mv
/usr/src/extmail-1
.2/
/usr/local/apache/htdocs/extmail
cd
/usr/local/apache/htdocs/extmail
chown
-R postfix:postfix cgi
cp
webmail.cf.default webmail.cf
vi
webmail.cf
SYS_CONFIG =
/usr/local/apache/htdocs/extmail
SYS_LANGDIR =
/usr/local/apache/htdocs/extmail/lang
SYS_TEMPLDIR =
/usr/local/apache/htdocs/extmail/html
SYS_MAILDIR_BASE =
/mailbox
SYS_MYSQL_USER = extmail
SYS_MYSQL_PASS = extmail
SYS_MYSQL_DB = extmail
SYS_MYSQL_HOST = localhost
SYS_MYSQL_SOCKET =
/tmp/mysql
.sock
vi
/usr/local/apache/conf/httpd
.conf
#LoadModule suexec_module ......
#LoadModule cgi_module ...... //去掉这两行前面的#
ServerName mail.
test
.com:80
#DocumentRoot ...... //这行前面加#
#Include conf/extra/httpd-vhosts.conf //去掉这行前面的#
mkdir
-p
/mailbox/extmail
.org
/postmaster/Maildir/
chown
-R postfix:postfix
/mailbox
vi
/usr/local/apache/conf/extra/httpd-vhosts
.conf
<VirtualHost *:80>
DocumentRoot
/usr/local/apache/htdocs/extmail/html
ServerName mail.
test
.com
ScriptAlias
/extmail/cgi/
/usr/local/apache/htdocs/extmail/cgi/
Alias
/extmail
/usr/local/apache/htdocs/extmail/html
ScriptAlias
/extman/cgi/
/usr/local/apache/htdocs/extman/cgi/
Alias
/extman
/usr/local/apache/htdocs/extman/html
SuexecUserGroup postfix postfix
<
/VirtualHost
>