Ubuntu 下安装 OpenWebmail

By | 2018-11-27

本文转自: http://b2d.tnc.edu.tw/phpBB2/viewtopic.php?t=2729

步驟 1 :

gedit /etc/apt/sources.list

deb ftp://debian.tnc.edu.tw/pub1 b2d/

apt-get update
apt-get install perl-suid
apt-get install libapache2-mod-perl2
apt-get install openwebmail

它會出現以下訊息:

下載:1 ftp://deb.tnc.edu.tw b2d/ openwebmail 2.53-1.b2d [8966kB]
讀取 8966kB 用了 0s (11.2MB/s)
(正在讀取資料庫 … 系統目前總共安裝有 99938 個檔案和目錄。)
正預備替換 openwebmail 2.52-1.b2d (使用 …/openwebmail_2.53-1.b2d_all.deb) …
正在解壓縮替換的套件檔 openwebmail …
正在設定 openwebmail (2.53-1.b2d) …

Creating UTF-8 locales…
langconv ar_AE.CP1256 -> ar_AE.UTF-8
langconv ar_AE.ISO8859-6 -> ar_AE.UTF-8
langconv bg_BG.CP1251 -> bg_BG.UTF-8
langconv ca_ES.ISO8859-1 -> ca_ES.UTF-8
langconv cs_CZ.ISO8859-2 -> cs_CZ.UTF-8
langconv da_DK.ISO8859-1 -> da_DK.UTF-8
langconv de_DE.ISO8859-1 -> de_DE.UTF-8
langconv el_GR.ISO8859-7 -> el_GR.UTF-8
langconv en_US.ISO8859-1 -> en_US.UTF-8
langconv es_AR.ISO8859-1 -> es_AR.UTF-8
langconv fi_FI.ISO8859-1 -> fi_FI.UTF-8
langconv fr_FR.ISO8859-1 -> fr_FR.UTF-8
langconv he_IL.CP1255 -> he_IL.UTF-8
langconv hr_HR.ISO8859-2 -> hr_HR.UTF-8
langconv hu_HU.ISO8859-2 -> hu_HU.UTF-8
langconv id_ID.ISO8859-1 -> id_ID.UTF-8
langconv it_IT.ISO8859-1 -> it_IT.UTF-8
langconv ko_KR.eucKR -> ko_KR.UTF-8
langconv lt_LT.CP1257 -> lt_LT.UTF-8
langconv nl_NL.ISO8859-1 -> nl_NL.UTF-8
langconv no_NO.ISO8859-1 -> no_NO.UTF-8
langconv pl_PL.ISO8859-2 -> pl_PL.UTF-8
langconv pt_BR.ISO8859-1 -> pt_BR.UTF-8
langconv pt_PT.ISO8859-1 -> pt_PT.UTF-8
langconv ro_RO.ISO8859-2 -> ro_RO.UTF-8
langconv ru_RU.KOI8-R -> ru_RU.UTF-8
langconv sk_SK.ISO8859-2 -> sk_SK.UTF-8
langconv sl_SI.CP1250 -> sl_SI.UTF-8
langconv sr_CS.ISO8859-2 -> sr_CS.UTF-8
langconv sv_SE.ISO8859-1 -> sv_SE.UTF-8
langconv th_TH.TIS-620 -> th_TH.UTF-8
langconv tr_TR.ISO8859-9 -> tr_TR.UTF-8
langconv uk_UA.KOI8-U -> uk_UA.UTF-8
…done.

Welcome to the OpenWebMail!

This program is going to send a short message back to the developer,
so we could have the idea that who is installing and how many sites are
using this software, the content to be sent is:

OS: Linux 2.6.23.16 i686
Perl: 5.008004
WebMail: OpenWebMail 2.53-B2D 20080123

Send the site report?(Y/n) n (這裡請回答 n)

Thank you.

Please *restart* your Apache2 !
Y/N ?
y (這裡請回答 y)

====

步驟 2: 重新安裝 chspeedy

apt-get install –reinstall chspeedy

它會出現以下訊息:

讀取套件清單中… 完成
了解套件依存關係中… 完成
更新 0 個套件,新安裝 0 個套件,重新安裝 1 個套件,刪除 0 個套件,另不更新 5 個套件。
需要下載 20.5kB 的檔案。
解壓縮後將消耗 0B 的空間。
繼續執行嗎? 是按 [Y] 鍵,否按 [n] 鍵 y (這裡請回答 y)

—-
這樣可以使 openwebmail 運用 speedy 來加速 CGI 程式的運作.

OpenWebmail 使用法:

引言回覆:
OpenWebmail 登入位址: http://主機/openwebmail

**** 注意!!! **** 這個版本是 B2D 專用版本,支援 blowfish 加密。

若您的 B2D 版本已經是很舊的版本(2006/10/20 日以前的版本,但不包括 1020 版),因為當時尚未改成支援 blowfish,因此您必須下載以下這支 auth_unix.pl,然後把它拷貝放入 /usr/lib/cgi-bin/openwebmail/auth,覆蓋掉 auth_unix.pl,否則將無法正常登入 openwebmail

判斷 B2D Server 是否為支援 Blowfish 密碼系統的方法如下:

apt-get update
apt-get install chk-blowfish

執行 chk-blowfish

若出現: “這個版本的 B2D Server *有* 支援 Blowfish 加密!” 表示有支援.

若出現: “這個版本的 B2D Server *沒有* 支援 Blowfish 加密!” 表示沒有支援. 那麼, 您就要按前述說明, 下載 auth_unix.pl, 並把該檔覆蓋掉!

下載 auth_unix.pl

ftp://ftp3.tnc.edu.tw/b2d/openwebmail/auth_unix.pl

———————- 非源安装方法 ————————————
1、server 安装完成后,执行以下命令来安装相关软件,才能配合openwebmail进行使用。

sudo apt-get install perl
sudo apt-get install libauthen-pam-perl
sudo apt-get install libconvert-asn1-perl
sudo apt-get install libmd5-perl
sudo apt-get install libnet-ldap-perl
sudo apt-get install perl-suid
sudo apt-get install wwwconfig-common
sudo apt-get install libpg-perl

2、从http://openwebmail.org/openwebmail/download/debian/ 下载最新openwebmail的安装包
如:owm2.53-2.deb

3、 sudo dpkg -i owm2.53-2.deb

4、 sudo rm /var/www/openwebmail/index.html
sudo ln -s /var/www/openwebmail/redirect.html /var/www/openwebmail/index.html

5、 sudo reboot 重启动服务器

發佈留言