2014年1月12日 星期日

[研究] OpenWebMail 2.53 安裝 (CentOS 6.5 x64)

[研究] OpenWebMail 2.53 安裝 (CentOS 6.5 x64)

2014-01-12

官方網站
http://openwebmail.org/

OpenWebMail 最新一版是 21-Feb-2008 釋出,而且只有 i386 版,沒有 x86_64 版。

安裝

# 停掉 SELinux

/usr/sbin/setenforce 0
sed -i -e "s@SELINUX=enforcing@#SELINUX=enforcing@"   /etc/selinux/config
sed -i -e "s@SELINUX=permissive@#SELINUX=permissive@"   /etc/selinux/config
sed -i -e "/SELINUX=/aSELINUX=disabled"   /etc/selinux/config

# 安裝基本套件
yum -y install perl-suidperl perl-Compress-Zlib perl-Text-Iconv

# 安裝 OpenWebMail
cd /etc/yum.repos.d
wget  http://openwebmail.org/openwebmail/download/redhat/rpm/release/openwebmail.repo
yum  -y  install  openwebmail

# 初始化

[root@server1 yum.repos.d]# /var/www/cgi-bin/openwebmail/openwebmail-tool.pl  --init

Please change '/var/www/cgi-bin/openwebmail/etc/dbm.conf' from

dbm_ext                 .db
dbmopen_ext             .db
dbmopen_haslock         no

to

dbm_ext                 .pag
dbmopen_ext             none
dbmopen_haslock         no


And execute '/var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init' again!

ps: If you are running openwebmail in persistent mode,
    don't forget to 'touch openwebmail*.pl', so speedycgi
    will reload all scripts, modules and conf files in --init.

[root@server1 yum.repos.d]#

#依照初始化程式要求修改

echo "dbm_ext                 .pag" >  /var/www/cgi-bin/openwebmail/etc/dbm.conf
echo "dbmopen_ext             none" >>  /var/www/cgi-bin/openwebmail/etc/dbm.conf
echo "dbmopen_haslock         no" >>  /var/www/cgi-bin/openwebmail/etc/dbm.conf

#再次執行初始化

[root@server1 yum.repos.d]# /var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init

creating db /var/www/cgi-bin/openwebmail/etc/maps/b2g ...done.
creating db /var/www/cgi-bin/openwebmail/etc/maps/g2b ...done.
creating db /var/www/cgi-bin/openwebmail/etc/maps/lunar ...done.

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.32-431.el6.x86_64 x86_64
Perl: 5.010001
WebMail: OpenWebMail 2.53 20080123

Send the site report?(Y/n)
sending report...

Thank you.

[root@server1 yum.repos.d]#

# 相關設定檔案可以不用修改
/var/www/cgi-bin/openwebmail/etc/openwebmail.conf
/var/www/cgi-bin/openwebmail/etc/defaults/dbm.conf

# 啟動
service iptables stop
chkconfig iptables off
service httpd restart
chkconfig httpd on

firefox  http://localhost/webmail/  &



(完)

相關

[研究] OpenWebMail 2.53 安裝 (CentOS 6.5 x64)
http://shaurong.blogspot.com/2014/01/openwebmail-253-centos-65-x64.html

[研究] OpenWebMail 2.53 安裝 (CentOS 5.6 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=20223


7 則留言:

  1. Hi!,
    How to migrate the existing mail server to another machine (form old to new server, due to the OS have to upgrade)?

    回覆刪除
    回覆
    1. 試試看把 /var/www/cgi-bin/openwebmail 目錄整個拷貝走

      您的 openwebmail 版本是甚麼 ?
      原來主機的 Linux 種類是甚麼 ? 版本是多少 ?
      新主機的 Linux 種類是甚麼 ? 版本是多少 ?

      刪除
    2. 版主你好,
      原來主機的 Linux 是 redhat 4
      新主機的 Linux 是 centOS 6.7 or 7
      現在openwebmail 版本是 2.52
      我會試試這方法,之後再update你.
      謝謝!

      刪除
    3. 版主你好,
      把原來主機的/var/www/cgi-bin/openwebmail, /var/www/cgi-bin/data /var/www/cgi-bin/html 目錄整個拷貝到新主機 可以 䦕webmail. 明天再做copy mail folders 同users.

      刪除
    4. 版主,
      copy all user's home folder (/home) and /var/spool/mail to new server today after the login it got an error.

      Problem :
      Software error:Undefined subroutine &ow::htmltext::str2html called at /var/www/cgi- bin/openwebmail/shares/ow-shared.pl line 1283.
      For help, please send mail to the webmaster (you@example.com), giving this error message and the time and date of the error.

      Fix :
      vi /var/www/cgi-bin/openwebmail/openwebmail.pl at part of "require modules " add require "modules/htmltext.pl"

      After fixed the login problem. Another error hint which is "Couldn't get read lock on db /home/XXXX/.openwebmail/db/XXXX"

      你有沒有遇過這問題? 已試過del db folder 及 /var/www/cgi-bin/openwebmail/openwebmail-tool.pl --index XXXX 都沒有用

      刪除
  2. 作者已經移除這則留言。

    回覆刪除