1.安装Extmail
从下面的URL下载extmail-0.20和enhanced-template-0.51:[url]http://www.extmail.org/cgi-bin/download.cgi[/url]
安装Extmail所需要的perl模块,安装的方法同上面的一样:
wget [url]http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.48.tar.gz[/url]
wget [url]http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-3.0002.tar.gz[/url]
wget [url]http://search.cpan.org/CPAN/authors/id/K/KA/KASPER/HTML-KTemplate-1.33.tar.gz[/url]
安装Extmail:
tar zxvf extmail-0.20.tar.gz
mv extmail-0.20 /usr/local/httpd/htdocs/extmail
cd /usr/local/httpd/htdocs/extmail
chown -R postfix.postfix cgi
配置Extmail,因为Extmail的Config.pm模块还不是很完善,在参数的后边一定不要有多余的空格:
cp webmail.cf.default webmail.cf
vi webmail.cf
SYS_CONFIG = /usr/local/httpd/htdocs/extmail/
SYS_LANGDIR = /usr/local/httpd/htdocs/extmail/lang
SYS_TEMPLDIR = /usr/local/httpd/htdocs/extmail/html
SYS_USER_LANG = zh_CN
SYS_USER_CHARSET = gb2312
SYS_MAILDIR_BASE = /home/mail
SYS_CRYPT_TYPE = md5
SYS_MYSQL_USER = postfixadmin
SYS_MYSQL_PASS = mysql_password
SYS_MYSQL_DB = postfix
SYS_MYSQL_HOST = localhost
# table name
SYS_MYSQL_TABLE = mailbox
SYS_MYSQL_ATTR_USERNAME = username
SYS_MYSQL_ATTR_PASSWD = password
SYS_MYSQL_ATTR_QUOTA = quota
SYS_MYSQL_ATTR_HOME = maildir
SYS_MYSQL_ATTR_MAILDIR = maildir

 2.配置Apache:
vi /usr/local/httpd/conf/httpd.conf
AddHandler cgi-script .cgi
NameVirtual *:80
<Directory /usr/local/httpd/htdocs/extmail/cgi>
Options +ExecCGI
</Directory>

<VirtualHost *:80>
ServerAdmin [email]webmaster@sww.com.cn[/email]
DocumentRoot /usr/local/httpd/htdocs/extmail/html
Alias /extmail/cgi/ /usr/local/httpd/htdocs/extmail/cgi/
Alias /extmail/ /usr/local/httpd/htdocs/extmail/html/
Alias /admin/ /usr/local/httpd/htdocs/postfixadmin/
ScriptAlias /extmail/cgi/ /usr/local/httpd/cgi-bin/extmail/cgi/
SuexecUserGroup postfix postfix
ServerName mail.sww.com.cn
ErrorLog logs/mail.sww.com.cn-error_log
CustomLog logs/mail.sww.com.cn-access_log common
</VirtualHost>

<Directory /usr/local/httpd/htdocs/extmail/cgi>
Options +ExecCGI
</Directory>
安装Extmail的高级模板:
tar zvxf enhanced-template-0.51.tar.gz -C /usr/local/httpd/htdocs/extmail/html
注:“mail.sww.com.cn”是你的域名。
你可以从[url]http://www.extmail.org[/url]上面看到Extmail的演示。

重新启动服务器,检查是不是所有的服务都正常启动!如果有什么问题请首先查看系统的日志,因为90%以上的问题都可以从日志中找到错误原因。