部署 Extmail 邮件界面
--------------------
按顺序安装三个Perl支持软件包
[root@mail mail]# tar xzvf Unix-Syslog-1.1.tar.gz
[root@mail mail]# tar xzvf DBI-1.607.tar.gz
[root@mail mail]# tar xzvf DBD-mysql-4.011.tar.gz
[root@mail mail]#
[root@mail mail]# cd Unix-Syslog-1.1
[root@mail Unix-Syslog-1.1]# perl Makefile.PL
[root@mail Unix-Syslog-1.1]# make && make install
[root@mail Unix-Syslog-1.1]# cd ../DBI-1.607
[root@mail DBI-1.607]# perl Makefile.PL
[root@mail DBI-1.607]# make && make install
[root@mail DBI-1.607]# cd ../DBD-mysql-4.011
[root@mail DBD-mysql-4.011]# perl Makefile.PL
[root@mail DBD-mysql-4.011]# make && make install
---------------------
安装配置Extmail套件
[root@mail mail]# tar xzvf extmail-1.0.5.tar.gz -C /usr/local/apache2/htdocs/
[root@mail mail]# cd /usr/local/apache2/htdocs/
[root@mail htdocs]# mv extmail-1.0.5 extmail
[root@mail htdocs]#
[root@mail htdocs]# cd extmail/
[root@mail extmail]# chown -R postfix:postfix cgi
---------------------
建立配置文件并修改
[root@mail extmail]# cp webmail.cf.default webmail.cf
[root@mail extmail]#
[root@mail extmail]# vim /usr/local/apache2/htdocs/extmail/webmail.cf
2 SYS_CONFIG = /usr/local/apache2/htdocs/extmail/
5 SYS_LANGDIR = /usr/local/apache2/htdocs/extmail/lang
8 SYS_TEMPLDIR = /usr/local/apache2/htdocs/extmail/html
112 SYS_MAILDIR_BASE = /mailbox
124 SYS_MYSQL_USER = extmail
125 SYS_MYSQL_PASS = extmail
126 SYS_MYSQL_DB = extmail
127 SYS_MYSQL_HOST = localhost
128 SYS_MYSQL_SOCKET = /tmp/mysql.sock
---------------------
调整httpd.conf文件配置(添加虚拟主机)重启服务
[root@mail ~]# vim /usr/local/apache2/conf/httpd.conf //在最后添加下列内容
NameVirtualHost 192.168.1.1
ServerName mail.mail.com
DocumentRoot /usr/local/apache2/htdocs/extmail/html/
ScriptAlias /extmail/cgi/ /usr/local/apache2/htdocs/extmail/cgi/
Alias /extmail /usr/local/apache2/htdocs/extmail/html/
SuexecUserGroup postfix postfix
[root@mail ~]# service newhttpd restart
登录测试(浏览器中输入http://mail.mail.com)
---------------------
部署 ExtmanWeb 邮件管理界面
安装perl支持软件包GD,File-Tail及 retool绘图引擎工具
[root@mail mail]# tar xzvf GD-2.41.tar.gz
[root@mail mail]# tar xzvf File-Tail-0.99.3.tar.gz
[root@mail mail]#
[root@mail mail]# cd GD-2.41
[root@mail GD-2.41]# perl Makefile.PL
[root@mail GD-2.41]# make && make install
[root@mail GD-2.41]# cd ../File-Tail-0.99.3
[root@mail File-Tail-0.99.3]# perl Makefile.PL
[root@mail File-Tail-0.99.3]# make && make install
[root@mail File-Tail-0.99.3]# rpm -ivh /home/tom/mail/rrdtool-1.2.23-3.el5.i386.rpm
[root@mail File-Tail-0.99.3]# rpm -ivh /home/tom/mail/rrdtool-perl-1.2.23-3.el5.i386.rpm
--------------------
安装配置Extman套件
[root@mail LNS-SG7]# tar xzvf extman-0.2.5.tar.gz -C /usr/local/apache2/htdocs/
[root@mail LNS-SG7]# cd /usr/local/apache2/htdocs/
[root@mail htdocs]#
[root@mail LNS-SG7]# cd /usr/local/apache2/htdocs/
[root@mail htdocs]# mv extman-0.2.5 extman
[root@mail htdocs]# chown -R postfix:postfix extman/cgi
[root@mail htdocs]#
[root@mail htdocs]# mkdir /tmp/extman
[root@mail htdocs]# chown -R postfix:postfix /tmp/extman
--------------------
修改webman.cf配置文件
[root@mail htdocs]# vim /usr/local/apache2/htdocs/extman/webman.cf
2 SYS_CONFIG = /usr/local/apache2/htdocs/extman/
5 SYS_LANGDIR = /usr/local/apache2/htdocs/extman/lang
8 SYS_TEMPLDIR = /usr/local/apache2/htdocs/extman/html
12 SYS_MAILDIR_BASE = /mailbox
127 SYS_MYSQL_USER = webman
128 SYS_MYSQL_PASS = webman
129 SYS_MYSQL_DB = extmail
130 SYS_MYSQL_HOST = localhost
131 SYS_MYSQL_SOCKET = /tmp/mysql.sock
--------------------
调整httpd.conf文件配置(添加虚拟主机)重启服务
[root@mail ~]# vim /usr/local/apache2/conf/httpd.conf // 添加下列粗体内容
NameVirtualHost 192.168.1.1
ServerName mail.mail.com
DocumentRoot /usr/local/apache2/htdocs/extmail/html/
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/
SuexecUserGroup postfix postfix
[root@mail htdocs]# service newhttpd restart
登录管理Extman邮件系统(地址栏输入 http://mail.mail.com/extman)
----------------------
邮件系统图形化日志信息查看
[root@mail ~]# ln -sf /usr/local/apache2/htdocs/extman/addon/mailgraph_ext/mailgraph-init \
> /usr/sbin/
[root@mail ~]# ln -sf /usr/local/apache2/htdocs/extman/addon/mailgraph_ext/qmonitor-init \
> /usr/sbin/
[root@mail ~]# mkdir /usr/local/mailgraph_ext
[root@mail ~]#
[root@mail ~]# cp /usr/local/apache2/htdocs/extman/addon/mailgraph_ext/mailgraph_ext.pl \
> /usr/local/mailgraph_ext/
[root@mail ~]# cp /usr/local/apache2/htdocs/extman/addon/mailgraph_ext/qmonitor.pl \
> /usr/local/mailgraph_ext/
[root@mail ~]#
[root@mail ~]# mailgraph-init start
Starting mail statistics grapher: mailgraph_ext
[root@mail ~]# qmonitor-init start
Starting queue statistics grapher: qmonitor
[root@mail ~]#
到此Extmail全部配置完成
--------------------
按顺序安装三个Perl支持软件包
[root@mail mail]# tar xzvf Unix-Syslog-1.1.tar.gz
[root@mail mail]# tar xzvf DBI-1.607.tar.gz
[root@mail mail]# tar xzvf DBD-mysql-4.011.tar.gz
[root@mail mail]#
[root@mail mail]# cd Unix-Syslog-1.1
[root@mail Unix-Syslog-1.1]# perl Makefile.PL
[root@mail Unix-Syslog-1.1]# make && make install
[root@mail Unix-Syslog-1.1]# cd ../DBI-1.607
[root@mail DBI-1.607]# perl Makefile.PL
[root@mail DBI-1.607]# make && make install
[root@mail DBI-1.607]# cd ../DBD-mysql-4.011
[root@mail DBD-mysql-4.011]# perl Makefile.PL
[root@mail DBD-mysql-4.011]# make && make install
---------------------
安装配置Extmail套件
[root@mail mail]# tar xzvf extmail-1.0.5.tar.gz -C /usr/local/apache2/htdocs/
[root@mail mail]# cd /usr/local/apache2/htdocs/
[root@mail htdocs]# mv extmail-1.0.5 extmail
[root@mail htdocs]#
[root@mail htdocs]# cd extmail/
[root@mail extmail]# chown -R postfix:postfix cgi
---------------------
建立配置文件并修改
[root@mail extmail]# cp webmail.cf.default webmail.cf
[root@mail extmail]#
[root@mail extmail]# vim /usr/local/apache2/htdocs/extmail/webmail.cf
2 SYS_CONFIG = /usr/local/apache2/htdocs/extmail/
5 SYS_LANGDIR = /usr/local/apache2/htdocs/extmail/lang
8 SYS_TEMPLDIR = /usr/local/apache2/htdocs/extmail/html
112 SYS_MAILDIR_BASE = /mailbox
124 SYS_MYSQL_USER = extmail
125 SYS_MYSQL_PASS = extmail
126 SYS_MYSQL_DB = extmail
127 SYS_MYSQL_HOST = localhost
128 SYS_MYSQL_SOCKET = /tmp/mysql.sock
---------------------
调整httpd.conf文件配置(添加虚拟主机)重启服务
[root@mail ~]# vim /usr/local/apache2/conf/httpd.conf //在最后添加下列内容
NameVirtualHost 192.168.1.1
ServerName mail.mail.com
DocumentRoot /usr/local/apache2/htdocs/extmail/html/
ScriptAlias /extmail/cgi/ /usr/local/apache2/htdocs/extmail/cgi/
Alias /extmail /usr/local/apache2/htdocs/extmail/html/
SuexecUserGroup postfix postfix
[root@mail ~]# service newhttpd restart
登录测试(浏览器中输入http://mail.mail.com)
---------------------
部署 ExtmanWeb 邮件管理界面
安装perl支持软件包GD,File-Tail及 retool绘图引擎工具
[root@mail mail]# tar xzvf GD-2.41.tar.gz
[root@mail mail]# tar xzvf File-Tail-0.99.3.tar.gz
[root@mail mail]#
[root@mail mail]# cd GD-2.41
[root@mail GD-2.41]# perl Makefile.PL
[root@mail GD-2.41]# make && make install
[root@mail GD-2.41]# cd ../File-Tail-0.99.3
[root@mail File-Tail-0.99.3]# perl Makefile.PL
[root@mail File-Tail-0.99.3]# make && make install
[root@mail File-Tail-0.99.3]# rpm -ivh /home/tom/mail/rrdtool-1.2.23-3.el5.i386.rpm
[root@mail File-Tail-0.99.3]# rpm -ivh /home/tom/mail/rrdtool-perl-1.2.23-3.el5.i386.rpm
--------------------
安装配置Extman套件
[root@mail LNS-SG7]# tar xzvf extman-0.2.5.tar.gz -C /usr/local/apache2/htdocs/
[root@mail LNS-SG7]# cd /usr/local/apache2/htdocs/
[root@mail htdocs]#
[root@mail LNS-SG7]# cd /usr/local/apache2/htdocs/
[root@mail htdocs]# mv extman-0.2.5 extman
[root@mail htdocs]# chown -R postfix:postfix extman/cgi
[root@mail htdocs]#
[root@mail htdocs]# mkdir /tmp/extman
[root@mail htdocs]# chown -R postfix:postfix /tmp/extman
--------------------
修改webman.cf配置文件
[root@mail htdocs]# vim /usr/local/apache2/htdocs/extman/webman.cf
2 SYS_CONFIG = /usr/local/apache2/htdocs/extman/
5 SYS_LANGDIR = /usr/local/apache2/htdocs/extman/lang
8 SYS_TEMPLDIR = /usr/local/apache2/htdocs/extman/html
12 SYS_MAILDIR_BASE = /mailbox
127 SYS_MYSQL_USER = webman
128 SYS_MYSQL_PASS = webman
129 SYS_MYSQL_DB = extmail
130 SYS_MYSQL_HOST = localhost
131 SYS_MYSQL_SOCKET = /tmp/mysql.sock
--------------------
调整httpd.conf文件配置(添加虚拟主机)重启服务
[root@mail ~]# vim /usr/local/apache2/conf/httpd.conf // 添加下列粗体内容
NameVirtualHost 192.168.1.1
ServerName mail.mail.com
DocumentRoot /usr/local/apache2/htdocs/extmail/html/
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/
SuexecUserGroup postfix postfix
[root@mail htdocs]# service newhttpd restart
登录管理Extman邮件系统(地址栏输入 http://mail.mail.com/extman)
----------------------
邮件系统图形化日志信息查看
[root@mail ~]# ln -sf /usr/local/apache2/htdocs/extman/addon/mailgraph_ext/mailgraph-init \
> /usr/sbin/
[root@mail ~]# ln -sf /usr/local/apache2/htdocs/extman/addon/mailgraph_ext/qmonitor-init \
> /usr/sbin/
[root@mail ~]# mkdir /usr/local/mailgraph_ext
[root@mail ~]#
[root@mail ~]# cp /usr/local/apache2/htdocs/extman/addon/mailgraph_ext/mailgraph_ext.pl \
> /usr/local/mailgraph_ext/
[root@mail ~]# cp /usr/local/apache2/htdocs/extman/addon/mailgraph_ext/qmonitor.pl \
> /usr/local/mailgraph_ext/
[root@mail ~]#
[root@mail ~]# mailgraph-init start
Starting mail statistics grapher: mailgraph_ext
[root@mail ~]# qmonitor-init start
Starting queue statistics grapher: qmonitor
[root@mail ~]#
到此Extmail全部配置完成