|
 
- 社区积分
- 142
- 技术积分
- 750
- 阅读权限
- 30
- 注册时间
- 2007-7-27
论坛徽章 3 |
楼主
发表于 2007-7-31 15:41
| 只看该作者
OpenWebMail README 中译版(四)
添加新的认证模块
--------------------------------------------
openwebmail可以直接使用各种认证模块,包括auth_unix.pl, auth_ldap.pl, auth_mysql, auth_mysql_vmail.pl,auth_pgsql, auth_pop3.pl和auth_pam.pl。万一发现这些模块不能适应自己的需要,你可以写一个属于你自己的新的认证模块。
向 openwebmail添加新的认证模块:
1.为新的认证模块选择一个所写名字例如:xyz
2.向auth_xyz.pl 文件添加下面的4个定义的函数:
($realname, $uid, $gid, $homedir)=get_userinfo($domain, $user);
@userlist=get_userlist($domain);
$retcode=check_userpassword($domain, $user, $password);
$retcode=change_userpassword($domain, $user, $oldpassword, $newpassword);
这里的$retcode意思使:
-1 : 功能不支持
-2 : 参数格式错误
-3 : 认证系统内部错误
-4 : 密码错误
可以参开auth_unix.p或者 auth_pam.pl 来编写
3.修改openwebmail.conf中的参数为auth_xyz.pl
4. 测试你的新认证模块
注:如果你希望你的认证模块包含在下一个版本的opernwebmail中,请提交把它提交给openwebmail.AT.turtle.ee.ncku.edu.tw.
添加新的语言支持
-----------------------------
在openwebmail添加新的语言支持非常简单:
1. 选择一个你语言的所写,例如:xy
注:你也可以参考下面的URL地址来选择
http://i18n.kde.org/stats/gui/i18n-table-KDE_2_2_BRANCH.html
http://babel.alis.com/langues/iso639.en.htm
http://www.unicode.org/unicode/onlinedat/languages.html
2. cd cgi-bin/openwebmail/etc.
cp lang/en lang/xy
cp -R templates/en templates/xy
3.将lang/xy和templates/xy/* 中的所有文件从英文翻译成你自己的语言
4. 将你的语言添加到openwebmail-shared.pl中的 %languagenames中,然后在openwebmail.conf中设置你的语言为xy
注:如果你希望你的翻译包含在下一版的openwebmail中的话,请将它提交给openwebmail.AT.turtle.ee.ncku.edu.tw.
添加更多的背景
--------------------------------------------
如果想在openwebmail中为你的用户添加更多的背景图片,只要把它们复制到%ow_htmldir%/images/backgrounds,然后用户就可以在他们的属性菜单里选择这些图片作为背景了
注:如果你想和其他人共享你美妙的背景,请将他们提交给openwebmail.AT.turtle.ee.ncku.edu.tw
设计自己的OPENWEBMAIL图标
---------------------------------------
如果你对openwebmail中的图标设计很感兴趣,你必须
1. 在%ow_htmldir%/images/iconsets/目录创建一个子目录,例如:MyIconSet
注:%ow_htmldir%是openwebmail查找html对象的路径,该路径在openwebmail.conf定义
2. 从%ow_htmldir%/images/iconsets/Default复制所有的图片到MyIconSet
3. 按照你的需要修改 %ow_htmldir%/images/iconsets/MyIconSet 中的图片
注:如果你希望你的新图标可以包含在下一版本的openwebmail中请将它们提交给openwebmail.AT.turtle.ee.ncku.edu.tw
测试
-----
1. 改变工作路径到openwebmail的cgi目录(例如:/usr/local/www/cgi-bin/openwebmail)
检查这些文件的属主以及权限是否为:
~/openwebmail.pl - owner=root, group=mail, mode=4755
~/openwebmail-main.pl - owner=root, group=mail, mode=4755
~/openwebmail-read.pl - owner=root, group=mail, mode=4755
~/openwebmail-viewatt.pl - owner=root, group=mail, mode=4755
~/openwebmail-send.pl - owner=root, group=mail, mode=4755
~/openwebmail-spell.pl - owner=root, group=mail, mode=4755
~/openwebmail-prefs.pl - owner=root, group=mail, mode=4755
~/openwebmail-folder.pl - owner=root, group=mail, mode=4755
~/checkmail.pl - owner=root, group=mail, mode=4755
~/vacation.pl - owner=root, group=mail, mode=0755
~/etc - owner=root, group=mail, mode=755
~/etc/sessions - owner=root, group=mail, mode=770
~/etc/users - owner=root, group=mail, mode=770
/var/log/openwebmail.log - owner=root, group=mail, mode=660
2. 通过访问http://your_server/cgi-bin/openwebmail/openwebmail.pl来测试
如果有任何问题请于阅读faq.txt.,最新版本的FAQ可以从http://turtle.ee.ncku.edu.tw/openwebmail/download/doc/faq.txt获得。
TODO
----
我们在下一步工作中要实现:.
1. web日历
2. web硬盘
3. 共享目录
4. mod_perl兼容
人们所感兴趣的功能:
1. maildir支持
2. 在线签收
3. 日志分析
03/14/2002
openwebmail.AT.turtle.ee.ncku.edu.tw
冷风的openwebmail.conf文件
# Open WebMail configuration file
#
# This file contains just the overrides from openwebmail.conf.default
# please make all changes to this file.
#
# This file sets options for all domains and all users.
# To set options on per domain basis, please put them in sites.conf/domainname
# To set options on per user basis, please put them in users.conf/username
#
domainnames chinalinuxpub.com
auth_module auth_pam.pl
mailspooldir /var/spool/mail
dbm_ext db
dbmopen_ext none
timeoffset +0800
ow_cgidir /home/linuxpub/cgi-bin/openwebmail
ow_htmldir /home/linuxpub/data/openwebmail
logfile /var/log/openwebmail.log
spellcheck /usr/bin/aspell
default_iconset Cool3D.English
default_confirmmsgmovecopy no
default_moveoldmsgfrominbox no
default_language zh_CN.GB2312
vacationpipe /home/linuxpub/cgi-bin/openwebmail/vacation.pl -d -t60s
<default_signature>
--
Linux技术中坚站 (http://www.chinalinuxpub.com)
</default_signature> |
|