搭建Red Hat Enterprise Linux 5.4的Postfix邮件服务器(4)

修改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

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/ee387adee528e189dcb44dd8d9b75561.html