分享
 
 
 

IMP3.1在RedHat8.0的安装

王朝other·作者佚名  2008-05-19
窄屏简体版  字體: |||超大  

作者:朱国光

IMP 3.1在Red Hat 8.0的安装

安装预设环境: 机器名称webmail.example.com

网域example.com

SMTP 服务器mail.example.com

IMAP服务器WU-IMAP 2001a

IMAP主机mail.example.com

IMAP资料夹~/mail/

SQL 服务器MySQL

SQL 主机localhost

软件版本: RedHat8.0

Horde2.1

IMP3.1

Turba1.1

Pear4.1.0 (自horde.org取得)

内建RedHat8.0服务器版本:

apache-2.0.40

php-4.2.2-8.0.5php-imap-4.2.2-8.0.5php-ldap-4.2.2-8.0.5php-mysql-4.2.2-8.0.5

mysql-server-3.23.52-3mysql-3.23.52-3

imap-2001a-15

sendmail-8.12.5-7

1. 修改php的组态设定

etc/php.ini

short_open_tag = Onupload_max_filesize=3M

#设定上传档案大小上限

2. 增加Apache中 horde虚拟目录

/etc/httpd/conf/httpd.conf

Alias /horde /var/www/html/mail/horde/

Alias /horde/ /var/www/html/mail/horde/

3. 下载及安装Horde

# cd /tmp

# wget -c --passive-ftp ftp://ftp.horde.org/pub/horde/tarballs/horde-2.1.tar.gz

# tar xzf horde-2.1.tar.gz -C /var/www/html/mail

# cd /var/www/html/mail

# mv horde-2.1 horde

4. 下载及安装Pear

# cd /usr/share

# mv pear pear.4.1.2.redhat

# cd /tmp

# wget -c --passive-ftp ftp://ftp.horde.org/pub/horde/tarballs/pear-4.1.0.tar.gz

# tar xzf pear-4.1.0.tar.gz -C /usr/share

# cd /usr/share

# mv pear-4.1.0 pear

# chown root.root -R pear

每当重新更新 php rpms时必须重新执行一次

5. 设定mysql组态

确定mysql正常激活

# service mysqld restart

建立Horde数据库

# cd horde/scripts/db

# vi mysql_create.sql # 重要

# mysql

测试联机数据库

# mysql -h localhost -D horde -u horde -p

输入'exit'离开数据库

6. 将Horde散布档复制为预设组态档

# cd horde/config

# for foo in *.dist; do cp -v $foo `basename $foo .dist`; done

7. 修改horde数据库设定

/horde/config/horde.php

// use IMAP to authenticate users$conf['auth']['driver'] = 'imap';$conf['auth']['params']['dsn'] = '{mail.example.com.tw/imap:143}INBOX';// use MySQL to store Horde Stuff$conf['prefs']['driver'] = 'sql';$conf['prefs']['params']['phptype'] = 'mysql';$conf['prefs']['params']['hostspec'] = 'localhost';$conf['prefs']['params']['username'] = 'horde';$conf['prefs']['params']['password'] = '******'; /*

8. 增加信赖使用者

/etc/mail/trusted-users

apache

9. 设定horde预设语系

/horde/config/lang.php

// look down for the list of aliases$nls['defaults']['language'] = 'zh_TW';$nls['defaults']['charset'] = 'BIG5';

10. 测试horde是否安装完成

http://webmail.example.com/horde/test.php

11. 下载及安装IMP

# cd /tmp

# wget -c --passive-ftp ftp://ftp.horde.org/pub/imp/tarballs/imp-3.1.tar.gz

# tar xzf imp-3.1.tar.gz -C /var/www/html/mail/horde

# cd /var/www/html/mail/horde

# mv imp-3.1 imp

12. 修改登录档

/horde/config/registry.php

// uncoment the folowing$this-registry['auth']['login'] = 'imp';$this-registry['auth']['logout'] = 'imp';// uncoment the folowing$this-applications['imp'] = array( 'fileroot' = dirname(__FILE__) . '/../imp', 'webroot' = $this-applications['horde']['webroot'] . '/imp', 'icon' = $this-applications['horde']['webroot'] . '/imp/graphics/imp.gif', 'name' = _("Mail"), 'allow_guests' = false, 'show' = true);

$this-applications['horde'] = array('fileroot' = dirname(__FILE__) . '/..','webroot' = '/horde','initial_page' = 'login.php','icon' = '/horde/graphics/home.gif','name' = _("XX学校网络邮局"),'allow_guests' = true,'show' = true,'templates' = dirname(__FILE__) . '/../templates','cookie_domain' = $GLOBALS['HTTP_SERVER_VARS']['SERVER_NAME'],'cookie_path' = '/horde','server_name' = $GLOBALS['HTTP_SERVER_VARS']['SERVER_NAME'],'server_port' = $GLOBALS['HTTP_SERVER_VARS']['SERVER_PORT']);

13. 将IMP散布档复制为预设组态档

# cd horde/imp/config

# for foo in *.dist; do cp -v $foo `basename $foo .dist`; done

14. 修改服务器地址设定

/horde/imp/config/servers.php

// edit this lines$servers['imap'] = array( 'name' = 'IMAP Server', 'server' = 'mail.example.com.tw', 'protocol' = 'imap/notls', 'port' = 143, 'folders' = 'mail/', 'namespace' = '', 'maildomain' = 'example.com', 'smtphost' = 'mail.example.com', 'realm' = '', 'preferred' = 'true');

15. 修改IMP预设设定值

/horde/imp/config/prefs.php

// user language// look at /horde/config/lang.php for language aliases$_prefs['language'] = array( 'value' = 'zh_TW', 'locked' = false, 'shared' = true, 'type' = 'select', 'desc' = _("Select your preferred language:"));// user default mailbox// the default inbox canot be changed$_prefs['mailbox'] = array( 'value' = 'INBOX', 'locked' = true, 'shared' = false, 'type' = 'implicit');// use IMAP subscribe?// show only folders subscribed by IMAP$_prefs['subscribe'] = array( 'value' = 1, 'locked' = true, 'shared' = false, 'type' = 'checkbox', 'desc' = _("Use IMAP folder subscriptions"));

17. 测试IMP是否成功

http://webmail.example.com/horde/imp/test.php

18. 下载及安装Turba

# cd /tmp

# wget -c --passive-ftp ftp://ftp.horde.org/pub/turba/tarballs/turba-1.1.tar.gz

# tar xzf turba-1.1.tar.gz -C /var/www/html/mail/horde

# cd /var/www/html/mail/horde

# mv turba-1.1 turba

19.

将Turba散布档复制为预设组态档

# cd horde/turba/config

# for foo in *.dist; do cp -v $foo `basename $foo .dist`; done

20. 修改horde登录档加入turba

/horde/config/registry.php

// uncoment this$this-applications['turba'] = array( 'fileroot' = dirname(__FILE__) . '/../turba', 'webroot' = $this-applications['horde']['webroot'] . '/turba', 'icon' = $this-applications['horde']['webroot'] . '/turba/graphics/turba.gif', 'name' = _("Addressbook"), 'allow_guests' = false, 'show' = true);

21. 以下修改设定档

/horde/imp/config/conf.php

$conf['menu']['apps'] = array('turba');

/horde/turba/config/conf.php

$conf['menu']['apps'] = array('imp');

22. 修改turba预设语系

/horde/turba/config/prefs.php

// user language// set the same default language as Horde and IMP$_prefs['language'] = array( 'value' = 'zh_TW', 'locked' = false, 'shared' = true, 'type' = 'select', 'desc' = _("Select your preferred language:"));

23. 修改turba存取SQL密码

/horde/turba/config/sources.php

// complete this part of the config with the data// of the database as in /horde/config/horde.php// Also config the title to a know name in your locale$cfgSources['localsql'] = array( 'title' = 'My Addressbook', 'type' = 'sql', 'params' = array( 'phptype' = 'mysql', 'hostspec' = 'localhost', 'username' = 'horde', 'password' = '******', /*Edit this line!!!*/ 'database' = 'horde', 'table' = 'turba_objects' ),

24. 加入truba资料至SQL服务器数据库中

# cd /horde/turba/scripts/drivers/

# mysql

若mysql的root有设密码,请以输入方式输入密码******增加资料

# mysql -u root -p******

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有