extmail+extman(web邮件系统)
extmail为cgi页面的web邮件系统,extman为extmail的后台管理系统 (域、用户、密码等)
下载地址:
http://search.cpan.org/CPAN/authors/id/M/MG/MGRABNAR/File-Tail-0.99.3.tar.gz
http://search.cpan.org/CPAN/authors/id/M/MH/MHARNISCH/Unix-Syslog-1.1.tar.gz
http://www.extmail.org
http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rrdtool-1.2.18-1.el5.rf.i386.rpm (32位)
http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/perl-rrdtool-1.2.18-1.el5.rf.i386.rpm
http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rrdtool-1.2.18-1.el5.rf.x86_64.rpm (64位)
http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/perl-rrdtool-1.2.18-1.el5.rf.x86_64.rpm
注:
1、file-tail软件的作用是,用户自己注册后即可登录,会在服务器上自动生成用户目录,如果不装,每建一个用户,还需手动建个相应的目录,给予一定的权限才能登录
2、装rrdtool包是因为图形日志要用,rrdtool为绘图软件,不装图形无法显示
# tar zxf File-Tail-0.99.3.tar.gz
# cd File-Tail-0.99.3
# perl Mailfile.PL
# make && make install
# tar zxf Unix-Syslog-1.1.tar.gz
# cd Unix-Syslog-1.1
# perl Makefile.PL
# make && make install
# mount /dev/cdrom /media/cdrom
# rpm -ivh /media/cdrom/Server/perl-DBI-1.52-2.el5.i386.rpm
# rpm -ivh /media/cdrom/Server/perl-DBD-MySQL-3.0007-2.el5.i386.rpm --nodeps
# rpm -ivh rrdtool-1.2.18-1.el5.rf.i386.rpm
# rpm -ivh perl-rrdtool-1.2.18-1.el5.rf.i386.rpm
# tar zxf extmail-1.0.5.tar.gz -C /usr/local/apache/htdocs
# cd /usr/local/apache/htdocs
# mv extmail-1.0.5 extmail
# cd extmail
# cp webmail.cf.default webmail.cf
# vi /usr/local/apache/htdocs/extmail/webmail.cf
SYS_CONFIG = /usr/local/apache/htdocs/extmail/
SYS_LANGDIR = /usr/local/apache/htdocs/extmail/lang
SYS_TEMPLDIR = /usr/local/apache/htdocs/extmail/html
SYS_MAILDIR_BASE = /mailbox
SYS_MYSQL_USER = root
SYS_MYSQL_PASS = 123456
SYS_MYSQL_DB = extmail
SYS_MYSQL_HOST = localhost
SYS_MYSQL_SOCKET = /tmp/mysql.sock
SYS_LOG_FILE = /var/log/maillog
SYS_MESSAGE_SIZE_LIMIT = 2048000 (设置单个邮件大小为2m)
:wq
# chmod 777 /mailbox
# mkdir /mailbox/extmail.org/postmaster/Maildir -p
# chmod -R 777 /mailbox/extmail.org/postmaster/Maildir
# tar zxf extman-0.2.5.tar.gz -C /usr/local/apache/htdocs
# cd /usr/local/apache/htdocs
# mv extman-0.2.5 extman
# cd extman
# cp webman.cf.default webman.cf
# vi /usr/local/apache/htdocs/extman/webman.cf
SYS_CONFIG = /usr/local/apache/htdocs/extman/
SYS_LANGDIR = /usr/local/apache/htdocs/extman/lang
SYS_TEMPLDIR = /usr/local/apache/htdocs/extman/html
SYS_MAILDIR_BASE = /mailbox
SYS_MYSQL_USER = root
SYS_MYSQL_PASS = 123456
SYS_MYSQL_DB = extmail
SYS_MYSQL_HOST = localhost
SYS_MYSQL_SOCKET = /tmp/mysql.sock
SYS_CATCHA_ON = 0 (原为1)
:wq
# mkdir /tmp/extman
# chmod 777 -R /tmp/extman
# cd extman/docs
# cp extmail.sql /root
# cp init.sql /root
# mysql -u root -p123456
> create database extmail;
> use extmail;
> source /root/extmail.sql;
> source /root/init.sql;
> quit
# vi /usr/local/apache/conf/httpd.conf
ScriptAlias /extmail/cgi /usr/local/apache/htdocs/extmail/cgi
Alias /extmail /usr/local/apache/htdocs/extmail/html
<Location "/extmail/cgi">
SetHandler cgi-script
Options +ExecCGI
</Location>
ScriptAlias /extman/cgi /usr/local/apache/htdocs/extman/cgi
Alias /extman /usr/local/apache/htdocs/extman/html
<Location "/extman/cgi">
SetHandler cgi-script
Options +ExecCGI
</Location>
:wq
# /usr/local/apache/bin/apachectl restart
显示系统信息(extman界面)
# /usr/local/apache/htdocs/extman/daemon/cmdserver -d
开机自启动:
# vi /etc/rc.local
/usr/local/apache/htdocs/extman/daemon/cmdserver -d
:wq
开启extman的图形日志功能:
# cp -r /usr/local/apache/htdocs/extman/addon/mailgraph_ext /usr/local
# /usr/local/mailgraph_ext/mailgraph-init start
开机自启动:
# vi /etc/rc.local
/usr/local/mailgraph_ext/mailgraph-init start
:wq
http://192.168.1.12/extmail
用户名:postmaster 密码:extmail 域名:extmail.org
http://192.168.1.12/extman
用户名:[email protected] 密码:extmail*123*
附:
修改extman的默认登录名
# vi /usr/local/apache/htdocs/extman/html/default/index.html (第141行)
<input name=username [email protected] calss=login_input>
:wq
[email protected]即为默认登录名,可以改成自己想设的,但不能为空,为空了将会无法登录
注:
1、linux下验证码不显示问题暂没解决,所以这里先关闭了这一功能。
2、默认是不能自由注册的,可在extman上设置
3、用户可自行修改密码,在登录extmail后的偏好设置里,也可通过extman禁止用户修改密码
4、在extman上添加的管理员类型只能为postmaster,权限很有限,可通过phpmyadmin改数据库,把postmaster改为admin,就拥有所有的权限了。