酷!學園
技術討論區 => BSD 討論版 => 主題作者是: sorryboy 於 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
-
mua的問題,你看mta的log幹嘛?
要看log也是看web server log
-
sasl檢查一下
-
話說這套不是 imap client 嗎? 關 server 上的檔案有什麼關係.
你確定你的機器有 imap server 嗎?
-
因為mua的log file 內無任何紀錄,所以才會去看mta的log....
我倒是沒有想到要去看web server 的error log,感謝提醒,另外IMAP的功能正常;
用outlook 2010做測試輸入IMAP跟SMTP的位址後可以正確的讀取收件夾的內容(/var/mail/username),收寄信皆正常,
SASL的功能也正常,目前先針對web server的error log找問題。謝謝各位前輩的回覆與建議。
-
再請問一下...
觀察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錯誤嗎..
可以給小弟一個方向嗎,該如何解決...謝謝各位前輩