作者 主題: roundcube webmail 無法讀取mailbox內容  (閱讀 7178 次)

0 會員 與 1 訪客 正在閱讀本文。

sorryboy

  • 可愛的小學生
  • *
  • 文章數: 25
    • 檢視個人資料
roundcube webmail 無法讀取mailbox內容
« 於: 2013-12-16 16:29 »
各位好:
最近在FreeBSD 9.1上安裝了最新版的roundcube webmail
遇到了一些問題,想請教各位前輩~
1. 可以登入、也可以寄信,但只要一點選收信夾,就出現"伺服器錯誤"
2. 承上述,使用者的mail資料位於/var/mail/使用者名稱,確定能以openwebmail開啟該內容,但roundcube顯示收件夾卻是空的
3.於roundcube的log目錄內無任何紀錄
4.postfix log亦無任何紀錄
Dec 13 00:00:00 backup1 newsyslog[92282]: logfile turned over
以下是/etc/newsyslog.conf 中關於postfix的log設定
/var/log/maillog                 640  5     *    @T00  JC    /var/spool/postfix/pid/master.pid

damon

  • 管理員
  • 俺是博士!
  • *****
  • 文章數: 4227
    • 檢視個人資料
    • http://blog.damon.tw/
Re: roundcube webmail 無法讀取mailbox內容
« 回覆 #1 於: 2013-12-17 11:20 »
mua的問題,你看mta的log幹嘛?
要看log也是看web server log

西歪街

  • 鑽研的研究生
  • *****
  • 文章數: 695
  • 性別: 男
    • 檢視個人資料
Re: roundcube webmail 無法讀取mailbox內容
« 回覆 #2 於: 2013-12-17 14:47 »
sasl檢查一下

twu2

  • 管理員
  • 俺是博士!
  • *****
  • 文章數: 5416
  • 性別: 男
    • 檢視個人資料
    • http://blog.teatime.com.tw/1
Re: roundcube webmail 無法讀取mailbox內容
« 回覆 #3 於: 2013-12-17 15:06 »
話說這套不是 imap client 嗎? 關 server 上的檔案有什麼關係.
你確定你的機器有 imap server 嗎?

sorryboy

  • 可愛的小學生
  • *
  • 文章數: 25
    • 檢視個人資料
Re: roundcube webmail 無法讀取mailbox內容
« 回覆 #4 於: 2013-12-18 10:23 »
因為mua的log file 內無任何紀錄,所以才會去看mta的log....
我倒是沒有想到要去看web server 的error log,感謝提醒,另外IMAP的功能正常;
用outlook 2010做測試輸入IMAP跟SMTP的位址後可以正確的讀取收件夾的內容(/var/mail/username),收寄信皆正常,
SASL的功能也正常,目前先針對web server的error log找問題。謝謝各位前輩的回覆與建議。

sorryboy

  • 可愛的小學生
  • *
  • 文章數: 25
    • 檢視個人資料
Re: roundcube webmail 無法讀取mailbox內容
« 回覆 #5 於: 2013-12-19 14:48 »
再請問一下...
觀察log後,roundcube的error log顯示如下:

PHP Error: Error loading template for  in /usr/local/www/roundcube/program/include/rcmail_output_html.php on line 489 (GET /?_task=mail&_action=getunread&_remote=1&_unlock=0&_=1387339207864)

觀察/usr/local/www/roundcube/program/include/rcmail_output_html.php並觀察489行-->'line' => __LINE__,
而該區段程式碼為read template file
// read template file
        if (!$path || ($templ = @file_get_contents($path)) === false) {
            rcube::raise_error(array(
                'code' => 501,
                'type' => 'php',
                'line' => __LINE__,
                'file' => __FILE__,
                'message' => 'Error loading template for '.$realname
                ), true, $write);
            return false;
        }

是該區段的程式碼執行後導致GET /?_task=mail&_action=getunread&_remote=1&_unlock=0&_=1387339207864錯誤嗎..
可以給小弟一個方向嗎,該如何解決...謝謝各位前輩