igenus 是一个PHP开发的WEBMAIL,通过直接存取Maildir实现来读取邮件。
igenus 需要修改后才能支持Postfix
[root@linuxas3 src]# tar zxvf igenus_2_20030516_snap.tgz [root@linuxas3 src]# mv igenus /var/www/html/ [root@linuxas3 src]# cd /var/www/html/igenus/ [root@linuxas3 igenus]# |
修改Apache的配置文件httpd.confUser、Group改为Postfix,否则不能存取Maildir目录。
User postfix Group postfix NameVirtualHost xxx.xxx.xxx.xxx <VirtualHost xxx.xxx.xxx.xxx> ServerAdmin [email protected] DocumentRoot /var/www/html/igenus ServerName webmail.example.org SuexecUserGroup postfix postfix ErrorLog logs/igenus-error_log CustomLog logs/igenus-access_log common </VirtualHost> |
xxx.xxx.xxx.xxx为IPv4地址
/etc/php.ini
[root@linuxas3 igenus]# vi /etc/php.ini register_globals = On |
如果不打开register_globals = On 选项会提示:
Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0 |
重启动Apache
[root@linuxas3 igenus]# service httpd restart |
作者对igenus做了初步地修改。igenus for postfix netkiller修改
地址本,收藏夹表结构
Database postfix running on localhost # phpMyAdmin SQL Dump # version 2.5.6 # http://www.phpmyadmin.net # # Host: localhost # Generation Time: Apr 30, 2004 at 11:24 AM # Server version: 4.0.18 # PHP Version: 4.3.2 # # Database : `postfix` # # -------------------------------------------------------- # # Table structure for table `address` # DROP TABLE IF EXISTS `address`; CREATE TABLE `address` ( `id` int(11) unsigned NOT NULL auto_increment, `pw_id` varchar(50) 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 PACK_KEYS=1 AUTO_INCREMENT=4 ; # -------------------------------------------------------- # # Table structure for table `favorites` # DROP TABLE IF EXISTS `favorites`; CREATE TABLE `favorites` ( `id` int(10) unsigned NOT NULL auto_increment, `email` varchar(50) NOT NULL default '', `name` varchar(50) NOT NULL default '', `url` varchar(255) NOT NULL default '', `memo` varchar(255) NOT NULL default '', PRIMARY KEY (`id`) ) TYPE=MyISAM AUTO_INCREMENT=2 ; |