分类:
2009-11-26 11:06:35
#vi /etc/apache2/sites-enabled/vip.eol.cn
ServerName mail.vip.eol.cn
DocumentRoot /var/www/extsuite/extmail/html
ScriptAlias /extmail/cgi /var/www/extsuite/extmail/cgi
Alias /extmail /var/www/extsuite/extmail/html
ScriptAlias /extman/cgi /var/www/extsuite/extman/cgi
Alias /extman /var/www/extsuite/extman/html
SuexecUserGroup postfix postfix
Options Indexes FollowSymLinks
AllowOverride None
Allow from all
注意:suexec模块安装的时候,debian默认用户为www-data,目录为/var/www目录,手工编译安装可以自己指定参数
# ln -s /etc/apache2/mods-available/suexec.load /etc/apache2/mods-enabled/
导入数据库:
#cd /opt/distfiles/
#tar zxvf extman-1[1][1].0.1.tar.gz
#cd extman-
#mysql -uroot < extmail.sql
#mysql -uroot < init.sql
说明:
此时已经创建了extmail数据库,并授权了extmail/extmail和webman/webman帐户,默认extman管理账号为root@extmail.org/extmail*123*
# chown -R postfix.postfix /var/www/extsuite/extmail/cgi/
# chown -R postfix.postfix /var/www/extsuite/extman/cgi/
#mkdir /var/www/ extsuite
#mv /opt/distfiles/extmail /var/www/extsuite
#mv /opt/distfiles/extman /var/www/extsuite
配置extmail
#cd /var/www/extsuite/extmail
#cp webmail.cf.default webmail.cf
#vi webmail.cf
修改其中的数据库配置和smtp服务器配置以及默认语言配置:
SYS_USER_LANG = zh_CN
SYS_CRYPT_TYPE = md5crypt
SYS_MYSQL_USER = extmail
SYS_MYSQL_PASS = extmail
SYS_MYSQL_DB = extmail
SYS_MYSQL_HOST = 219.224.99.244
SYS_MYSQL_SOCKET = /var/run/mysqld/mysqld.sock
#mkdir /home/domains
# chown -R postfix.postfix /home/domains/
配置extman
#cd /var/www/extsuite/extman
#cp webman.cf.default webman.cf
#vi webman.cf
SYS_LANG = zh_CN
SYS_MYSQL_USER = webman
SYS_MYSQL_PASS = webman
SYS_MYSQL_DB = extmail
SYS_MYSQL_HOST = localhost
SYS_MYSQL_SOCKET = /var/run/mysqld/mysqld.sock
图形日志:
注意:
debian的邮件日志为/var/log/mail.log,而mailgraph-init脚本定义的日志为mailog,需要手工修改,或者链接一个文件,建议修改脚本中的配置为MAIL_LOG=/var/log/mail.log
#cp –r /var/www/extsuite/extman/addon/mailgraph_ext /usr/local/
# /usr/local/mailgraph_ext/mailgraph-init start
#/var/www/extsuite/extman/daemon/cmdserver --daemon