下面最新的igenus和admin管理
http://www.igenus.org
igenus_2[1].0.1_20040713_release.tgz
igenus_admin_0[1].1.tgz
一、首先安装:igenus_admin_0[1].1.tgz
[root@localhost qmail]# tar zxvf igenus_admin_0[1].1.tgz -C /var/www/mail
[root@localhost qmail]# cd /var/www/mail/admin
[root@localhost qmail]# cd includes
[root@localhost qmail]# vi config_inc.php
修改如下内容对应的内容:
$CFG_VPOPMAIL_HOST = "localhost";
$CFG_VPOPMAIL_USER = "vpopmail";
$CFG_VPOPMAIL_PASS = "123456";
$CFG_VPOPMAIL_DB = "vpopmail";
$CFG_VPOPMAIL_TABLE = "vpopmail";
$CFG_ADMIN_TABLE = "admin";
$CFG_LAGESITE = true;
$CFG_NUMOFPAGE = 20;
$CFG_VPOPMAIL_PATH = "/home/vpopmail";
然后在mysql里的vpopmail表里加入现在的sql
CREATE TABLE `admin` (
`id` int(10) unsigned NOT NULL auto_increment,
`site_id` int(10) unsigned NOT NULL default '0',
`domain` varchar(128) NOT NULL default '',
`quota` smallint(5) unsigned NOT NULL default '0',
`total` smallint(5) unsigned NOT NULL default '0',
`createtime` timestamp(14) NOT NULL,
`login` char(1) NOT NULL default '',
`cur_total` smallint(5) NOT NULL default '0',
`cur_quota` smallint(5) NOT NULL default '0',
`gid` varchar(11) NOT NULL default '',
`expiration_time` timestamp(14) NOT NULL,
`flag` int(10) unsigned NOT NULL default '0',
`maxmsg` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `domain` (`domain`)
) TYPE=MyISAM PACK_KEYS=1 ;
并在vpopmail这个表里加入一个
`createtime` timestamp(14) NOT NULL,
体整的数据如下加入的就是红色的那一条:
CREATE TABLE `vpopmail` (
`pw_id` int(5) unsigned NOT NULL auto_increment,
`pw_name` varchar(32) NOT NULL default '',
`pw_domain` varchar(64) NOT NULL default '',
`pw_passwd` varchar(40) NOT NULL default '',
`pw_uid` int(11) default NULL,
`pw_gid` int(11) default NULL,
`pw_gecos` varchar(64) default NULL,
`pw_dir` varchar(160) default NULL,
`pw_shell` varchar(20) default NULL,
`pw_clear_passwd` varchar(16) default NULL,
`createtime` timestamp(14) NOT NULL,
PRIMARY KEY (`pw_id`),
KEY `pw_name` (`pw_name`,`pw_domain`)
) TYPE=MyISAM AUTO_INCREMENT=11 ;
admin安装完成
http://IP/admin/sys/ //来管理域的,默认的用户名和密码Admin : Admin
http://IP/admin/ //来管理域的下面的用户
二、安装igenus_2[1].0.1_20040713_release.tgz
[root@localhost qmail]# tar zxvf igenus_admin_0[1].1.tgz -C /var/www/mail
[root@localhost qmail]# cd /var/www/mail/igenus
[root@localhost igenus]# mkdir temp
[root@localhost igenus]# chmod -R 0755 temp
[root@localhost igenus]# chown -R vpopmail:vchkpw temp
修改httpd.conf
[root@localhost igenus]# vi /etc/httpd/conf/httpd.conf
User Apache
Group Apache
修改为:
User vpopmail
Group vchkpw
[root@localhost igenus]# vi /var/www/html/igenus/config/config_inc.php
$CFG_BASEPATH = "/var/www/mail/igenus";
$CFG_MYSQL_HOST = 'localhost';
$CFG_MYSQL_USER = 'vpopmail';
$CFG_MYSQL_PASS = '******'; 改成你的密码
$CFG_MYSQL_DB = 'vpopmail';
$CFG_TEMP = $CFG_BASEPATh."/temp";
[root@localhost igenus]# cd docs
查看下面的iGENUS.sql文件
在数据库里加入所有的sql语句就可以了
http://IP/mail/igenus/ 就可以进入你的webmail了
以下是我的mysql下的vpopmail表的结构
-- phpMyAdmin SQL Dump
-- version 2.6.0-pl3
-- http://www.phpmyadmin.net
--
-- 主机: localhost
-- 生成日期: 2004 年 12 月 04 日 09:12
-- 服务器版本: 4.0.21
-- PHP 版本: 4.3.9
--
-- 数据库: `vpopmail`
--
-- --------------------------------------------------------
--
-- 表的结构 `address`
--
CREATE TABLE `address` (
`id` int(11) unsigned NOT NULL auto_increment,
`pw_id` int(5) unsigned NOT NULL default '0',
`name` varchar(64) NOT NULL default '',
`email` varchar(128) NOT NULL default '',
UNIQUE KEY `id` (`id`),
KEY `pw_id` (`pw_id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- 表的结构 `admin`
--
CREATE TABLE `admin` (
`id` int(10) unsigned NOT NULL auto_increment,
`site_id` int(10) unsigned NOT NULL default '0',
`domain` varchar(128) NOT NULL default '',
`quota` smallint(5) unsigned NOT NULL default '0',
`total` smallint(5) unsigned NOT NULL default '0',
`createtime` timestamp(14) NOT NULL,
`login` char(1) NOT NULL default '',
`cur_total` smallint(5) NOT NULL default '0',
`cur_quota` smallint(5) NOT NULL default '0',
`gid` varchar(11) NOT NULL default '',
`expiration_time` timestamp(14) NOT NULL default '00000000000000',
`flag` int(10) unsigned NOT NULL default '0',
`maxmsg` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `domain` (`domain`)
) TYPE=MyISAM PACK_KEYS=1 AUTO_INCREMENT=3 ;
-- --------------------------------------------------------
--
-- 表的结构 `board`
--
CREATE TABLE `board` (
`id` int(11) unsigned NOT NULL auto_increment,
`num` int(5) NOT NULL default '0',
`title` varchar(50) NOT NULL default '',
`content` varchar(255) NOT NULL default '',
`host` varchar(50) NOT NULL default '',
`allhost` int(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM PACK_KEYS=1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- 表的结构 `card`
--
CREATE TABLE `card` (
`id` int(5) unsigned NOT NULL auto_increment,
`pw_id` int(5) unsigned NOT NULL default '0',
`LinkMan` varchar(64) NOT NULL default '',
`CompanyName` varchar(100) NOT NULL default '',
`Address` varchar(255) NOT NULL default '',
`Position` varchar(32) NOT NULL default '',
`PhoneNumber` varchar(16) NOT NULL default '',
`Mobile` varchar(12) NOT NULL default '',
`Email` varchar(128) NOT NULL default '',
`Partaker` varchar(32) NOT NULL default '',
`Memo` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- 表的结构 `dir_control`
--
CREATE TABLE `dir_control` (
`domain` char(64) NOT NULL default '',
`cur_users` int(11) default NULL,
`level_cur` int(11) default NULL,
`level_max` int(11) default NULL,
`level_start0` int(11) default NULL,
`level_start1` int(11) default NULL,
`level_start2` int(11) default NULL,
`level_end0` int(11) default NULL,
`level_end1` int(11) default NULL,
`level_end2` int(11) default NULL,
`level_mod0` int(11) default NULL,
`level_mod1` int(11) default NULL,
`level_mod2` int(11) default NULL,
`level_index0` int(11) default NULL,
`level_index1` int(11) default NULL,
`level_index2` int(11) default NULL,
`the_dir` char(160) default NULL,
PRIMARY KEY (`domain`)
) TYPE=MyISAM;
-- --------------------------------------------------------
--
-- 表的结构 `forword`
--
CREATE TABLE `forword` (
`id` int(11) unsigned NOT NULL auto_increment,
`pw_id` int(5) NOT NULL default '0',
`email` varchar(64) NOT NULL default '',
`success` int(1) NOT NULL default '0',
`save` int(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM PACK_KEYS=1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- 表的结构 `lastauth`
--
CREATE TABLE `lastauth` (
`user` char(32) NOT NULL default '',
`domain` char(64) NOT NULL default '',
`remote_ip` char(18) NOT NULL default '',
`timestamp` bigint(20) NOT NULL default '0',
PRIMARY KEY (`user`,`domain`)
) TYPE=MyISAM;
-- --------------------------------------------------------
--
-- 表的结构 `logs`
--
CREATE TABLE `logs` (
`pw_id` int(5) default '0',
`ip` varchar(15) NOT NULL default '',
`action` varchar(15) NOT NULL default '',
`time` datetime default NULL,
`content` varchar(64) NOT NULL default '',
`email` varchar(128) NOT NULL default ''
) TYPE=MyISAM;
-- --------------------------------------------------------
--
-- 表的结构 `message`
--
CREATE TABLE `message` (
`id` int(5) unsigned NOT NULL auto_increment,
`title` varchar(255) NOT NULL default '',
`body` text NOT NULL,
`createtime` datetime NOT NULL default '0000-00-00 00:00:00',
`updatetime` datetime NOT NULL default '0000-00-00 00:00:00',
`pw_domain` varchar(64) NOT NULL default '',
UNIQUE KEY `id` (`id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- 表的结构 `personal`
--
CREATE TABLE `personal` (
`id` int(11) unsigned NOT NULL auto_increment,
`pw_id` int(5) NOT NULL default '0',
`truename` varchar(10) NOT NULL default '',
`fax` varchar(20) NOT NULL default '',
`telephone` varchar(15) NOT NULL default '',
`sex` int(1) NOT NULL default '0',
`year` int(4) NOT NULL default '0',
`month` int(2) NOT NULL default '0',
`day` int(2) NOT NULL default '0',
`education` varchar(4) NOT NULL default '',
`marital` int(1) NOT NULL default '0',
`occupation` varchar(15) NOT NULL default '',
`companyname` varchar(30) NOT NULL default '',
`province` varchar(6) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM PACK_KEYS=1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- 表的结构 `scheduler`
--
CREATE TABLE `scheduler` (
`id` int(11) unsigned NOT NULL auto_increment,
`begin_time` int(11) unsigned default NULL,
`end_time` int(11) unsigned default NULL,
`title` varchar(255) NOT NULL default '',
`body` varchar(255) NOT NULL default '',
`pw_id` int(11) unsigned NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- 表的结构 `stow`
--
CREATE TABLE `stow` (
`id` int(11) unsigned NOT NULL auto_increment,
`pw_id` int(5) NOT NULL default '0',
`name` varchar(64) NOT NULL default '',
`http` varchar(128) NOT NULL default '',
`memo` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM PACK_KEYS=1 AUTO_INCREMENT=3 ;
-- --------------------------------------------------------
--
-- 表的结构 `vpopmail`
--
CREATE TABLE `vpopmail` (
`pw_name` char(32) NOT NULL default '',
`pw_domain` char(64) NOT NULL default '',
`pw_passwd` char(40) default NULL,
`pw_uid` int(11) default NULL,
`pw_gid` int(11) default NULL,
`pw_gecos` char(48) default NULL,
`pw_dir` char(160) default NULL,
`pw_shell` char(20) default NULL,
`pw_clear_passwd` char(16) default NULL,
`pw_id` int(5) NOT NULL auto_increment,
`createtime` timestamp(14) NOT NULL,
PRIMARY KEY (`pw_id`)
) TYPE=MyISAM AUTO_INCREMENT=15 ;