Ajax介面的WebMail – RoundCube

21 一月 2008 作者: Devil, 12 篇回應
Ajax介面的WebMail – RoundCube

我們公司大家都非常習慣用pop3的Client端軟體來收發郵件,

所以Webmail的使用率真的不是很高,但少數的情況還是用的到

最開始我們是用Openwebmail但因Mail數量龐大,Mbox ((所有郵件都存放到一個文件里,每個郵件之間以特定的標記分割))的格式實在是撐不住了

而Openwebmail又不支援MailDir ((每一封郵件保存成一個文件,每個文件名稱一般有一定的規律)),因此更換Webmail還是必須進行的

如果對於Mbox與Maildir的差異有興趣研究的網友們,這裡一篇對岸同胞寫的文章,很清楚喔!Mbox vs Maildir 兩者的原理和區別

目前我們是用SquirrelMail ((OpenSource的Webmail軟體,特色有速度飛快及眾多Plugin支援)),其實我個人覺得不錯啦,只是介面有點醜

但是公司的大頭不喜歡,我又懶懶不太想去改那個極度陽春的介面…..

所以就找到了今天要介紹的這套RoundCube,最大的特色就是加入了部分Ajax的特性,

如信件的搬移可用滑鼠拖曳,輸入Address的時候有自動補齊的功能等等

缺點就是功能陽春,從目前版本號還是0.1-RC2可得窺一二,連郵件過濾與規則都沒有支援

不過這些都被RoundCube的開發團隊納入了Planned features,所以日後還是非常可以期待的!

使用RoundCube還有一個好處,就是安裝非常簡單、界面華麗、快速並且支援多國語言!底下為官網的ScreenShots

mail_view_block.jpgmail_view_chinese.jpg

mail_listing.jpgmail_compose.jpg

identities.jpgcontacts_edit.jpg

如果你覺得RoundCube看起來不錯用,就可以往下看安裝步驟囉!

環境:CentOS 4.5、httpd-2.0.52-38、php-4.3.9、mysql-4.1.20-3、可運行的MailServer

Step 1. 下載RoundCube,請連線至官網下載RoundCube最新版本

Step 2. 解壓縮並上傳至網頁根目錄,並將logs、temp兩個資料夾給予Apache可寫入的權限

Step 3. 建立一個資料庫準備給RoundCube使用,並匯入基本的資料表

目前RoundCube支援以下資料庫,mssql、mysql、mysql5、postgres、sqllite

不過我只有用Mysql、初始的資料表在SQL資料夾下,請找到Mysql用的版本

接著按照INSTALL說明的方式匯入,或是用PhpMyadmin ((好用的資料庫管理程式-官網在這))、Webmin ((最棒的系統管理工具-官網在這))等等都可以

# mysql
> CREATE DATABASE roundcubemail;
> GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost
    IDENTIFIED BY ‘password’;
> quit
# mysql roundcubemail < SQL/mysql.initial.sql

Step 4. 將config資料夾下的db.inc.php.dist、main.inc.php.dist兩個檔案檔名修改為db.inc.php、main.inc.php

Step 5. 修改db.inc.php、$rcmail_config['db_dsnw'] = ‘mysql://帳號:密碼@localhost/資料庫名稱’;

Step 6. 修改main.inc.php,預設值也可或照你希望的修改

Step 7. 此不可自行選擇要不要做,設置Apache的VirtualHost,編輯Apache的設定檔如下

<VirtualHost *:80>
ServerAdmin admin@sample.com #Admin的Mail
DocumentRoot /var/www/html/roundcube/ #修改為你的路徑
ServerName webmail.sample.com #設定ServerName
ServerAlias webmail.sample.com
AddDefaultCharset utf-8 #如果網頁伺服器編碼預設不是utf-8的話要加這行
LanguagePriority
</VirtualHost>

輸入完畢,重新啟動Apache伺服器,就可以用http://webmail.sample.com連進你的RoundCube囉!

結論:

在500封信的時速度與SquirrelMail幾乎是感覺不出差異,在加上美美的介面,真不錯!

如果信再增加就不曉得了,希望RoundCube能繼續開發下去,真的很令人期待

VN:F [1.9.3_1094]
Rating: 4.0/5 (2 votes cast)
Ajax介面的WebMail - RoundCube, 4.0 out of 5 based on 2 ratings

12 篇回應 “Ajax介面的WebMail – RoundCube”

  1. msjc 29 六月 2008 at 1:38 上午 #

    受益匪淺哦
    交個朋友吧

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  2. msjc 29 六月 2008 at 1:40 上午 #

    以後還請多多指教

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  3. Devil 29 六月 2008 at 2:07 上午 #

    不用客氣~歡迎留言一起討論喔!

    VN:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  4. 暮色今晨 6 七月 2008 at 2:04 下午 #

    我在虚拟主机上安装时
    出错了
    magic_quotes_gpc: NOT OK(is ’1′, should be ’0′)
    服务商不给改
    郁闷哦

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  5. Devil 7 七月 2008 at 11:47 下午 #

    不知道如果.htaccess可以用的話

    下php_flag magic_quotes_gpc off

    這樣可不可以!

    這位朋友試試看吧,如果可以回覆一下喔!

    VN:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  6. 请帮忙说说 13 二月 2009 at 3:18 下午 #

    我按照你的方法安装调试成功了,但是最后我进入界面后,标题都是正常的,就是有一些文字就成了乱码。能请你详细点给我解答一下!非常感谢!

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  7. 訪客 17 三月 2009 at 5:16 下午 #

    您好,我的安装了之后在进入安装界面时候出现了下面这个错误提示:

    Parse error: parse error, unexpected T_OBJECT_OPERATOR in /var/www/html/roundcubemail-0.2.1/program/include/rcube_shared.inc on line 549

    请问这是哪里出错了呢?谢谢!

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  8. 訪客 22 四月 2009 at 1:27 下午 #

    您好我有個疑問為什麼我架起來的Webmail – Roundcube畫面有夠醜的..而您的圖片是如此的漂亮…我是抓官網上面roundcubemail-0.2.1.tar.gz 這一個,難道是我抓錯個了嗎?

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  9. chingson 6 十一月 2009 at 12:10 上午 #

    Now my roundcube is running with 5G dbmail-imap & mysql
    in a VM …
    只可惜有些 skin 不支援中文, 不然會更 COOL
    now 0.3.1 is very cool now.

    Password plugin is also easy modified to dbmail..
    I am trying the dbmail-sieve..

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  10. superpoe 10 六月 2010 at 9:09 上午 #

    目前 Roundcube mail 已經來到0.4 beta 前幾天剛安裝完成,安裝完就已經是多國語言版了。但界面預設語言是簡體中文,正再爬文看能不能改成正體中文。

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)

Leave a Reply