基於物理檔案系統存取Maildir/mailbox的Webmail

igenus

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 webmaster@example.org
    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修改

http://webmail.example.org

地址本,收藏夾表結構

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 ;
			
			

SqWebmail

sqwebmail是c寫的webmail功能最全,速度最快,穩定性很好,就是界面醜點。

功能及特點:

  1. 解決了su 到指定用戶讀取Maildir

  2. 支持pam,mysql,pgsql,ldap...認證登錄

  3. 支持PGP、GPG 數字簽名

  4. 支持LDAP地址本

[root@linuxas3 src]# cd sqwebmail-4.0.3

			

OpenWebmail

Perl 寫的webmail