修改webmail使得该网站可以连接数据库:
#vim /usr/local/apache2/htdocs/extmail/webmail.cf
以下内容行号:2,5,8,112,124,125,126,127,128
SYS_CONFIG = /usr/local/apache2/htdocs/extmail/
SYS_LANGDIR = /usr/local/apache2/htdocs/extmail/lang
SYS_TEMPLDIR = /usr/local/apache2/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
#vim /usr/local/apache2/conf/httpd.conf
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/usr/local/apache2/htdocs/extmail/html/"
ServerName mail.example.com
ScriptAlias /extmail/cgi/ /usr/local/apache2/htdocs/extmail/cgi/
Alias /extmail /usr/local/apache2/htdocs/extmail/html/
ScriptAlias /extman/cgi /usr/local/apache2/htdocs/extman/cgi
Alias /extman /usr/local/apache2/htdocs/extman/html/
</VirtualHost>
!!注意:SuexecUserGroup postfix postfix 该行不可输入,否则报错!
该文件的66,67行,需要修改为
User postfix
Group postfix
完成!!!在Windows XP上使用IE浏览器访问,Linux服务器网页即可
默认邮件账户: postmaster@extmail.org, 密码:extmail