作者 主題: horde 寄信出現錯誤訊息 , 且無法移到 sent-mail 資料夾  (閱讀 6268 次)

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

jakson

  • 可愛的小學生
  • *
  • 文章數: 25
    • 檢視個人資料
horde 寄信後出現錯誤訊息  "傳送郵件時發生一個錯誤: sendmail: 內部軟體錯誤 (70)"
實際上信件有正確寄出 , 但發現不只有這個錯誤訊息 , 寄完的信件也無法在sent-mail裡面出現

cat horde.log 的訊息如下
 HORDE [error] [imp] sendmail: 內部軟體錯誤 (70) [on line 1059 of "/usr/share/horde/imp/compose.php"]

希望架設 horde 的 web mail , 但目前架設完畢以後 , 出現的錯誤 , 官方網站與google都找不到解決方式.. 所以想來這請教各位大大

小弟的環境是
CentOS 5.4 - 2.6.18-164.11.1.el5
Postfix

架設步驟如下:
yum groupinstall Horde
yum install php-gd -y
/etc/init.d/httpd reload
vi create.mysql.sql
mysql -u root -p < create.mysql.sql

各項設定如下:
horde/config/conf.php

$conf['debug_level'] = E_ALL;
$conf['max_exec_time'] = 0;
$conf['compress_pages'] = true;
$conf['umask'] = 077;
$conf['use_ssl'] = 2;
$conf['server']['name'] = $_SERVER['SERVER_NAME'];
$conf['server']['port'] = $_SERVER['SERVER_PORT'];
$conf['session']['name'] = 'Horde';
$conf['session']['use_only_cookies'] = true;
$conf['session']['cache_limiter'] = 'nocache';
$conf['session']['timeout'] = 0;
$conf['cookie']['domain'] = $_SERVER['SERVER_NAME'];
$conf['cookie']['path'] = '/horde';
$conf['sql']['persistent'] = false;
$conf['sql']['username'] = 'horde';
$conf['sql']['password'] = 'mypassword';
$conf['sql']['protocol'] = 'unix';
$conf['sql']['database'] = 'horde';
$conf['sql']['charset'] = 'UTF-8';
$conf['sql']['phptype'] = 'mysql';
$conf['auth']['admins'] = array('Administrator');
$conf['auth']['checkip'] = true;
$conf['auth']['checkbrowser'] = true;
$conf['auth']['alternate_login'] = false;
$conf['auth']['redirect_on_logout'] = false;
$conf['auth']['params']['app'] = 'imp';
$conf['auth']['driver'] = 'application';
$conf['signup']['allow'] = false;
$conf['log']['priority'] = PEAR_LOG_NOTICE;
$conf['log']['ident'] = 'HORDE';
$conf['log']['params'] = array();
$conf['log']['name'] = '/var/log/horde/horde.log';
$conf['log']['params']['append'] = true;
$conf['log']['type'] = 'file';
$conf['log']['enabled'] = true;
$conf['log_accesskeys'] = false;
$conf['prefs']['params']['driverconfig'] = 'horde';
$conf['prefs']['driver'] = 'sql';
$conf['datatree']['driver'] = 'null';
$conf['group']['driver'] = 'datatree';
$conf['cache']['default_lifetime'] = 1800;
$conf['cache']['params']['dir'] = Horde::getTempDir();
$conf['cache']['params']['gc'] = 86400;
$conf['cache']['driver'] = 'file';
$conf['token']['driver'] = 'none';
$conf['mailer']['params']['sendmail_path'] = '/usr/lib/sendmail';
$conf['mailer']['params']['sendmail_args'] = '-oi';
$conf['mailer']['type'] = 'sendmail';
$conf['vfs']['params']['vfsroot'] = '/tmp';
$conf['vfs']['type'] = 'file';
$conf['sessionhandler']['type'] = 'none';
$conf['problems']['email'] = 'jakson@yourdomain.com.tw';
$conf['problems']['maildomain'] = 'yourdomain.com.tw';
$conf['problems']['tickets'] = false;
$conf['menu']['apps'] = array();
$conf['menu']['always'] = false;
$conf['menu']['links']['help'] = 'all';
$conf['menu']['links']['help_about'] = true;
$conf['menu']['links']['options'] = 'authenticated';
$conf['menu']['links']['problem'] = 'all';
$conf['menu']['links']['login'] = 'all';
$conf['menu']['links']['logout'] = 'authenticated';
$conf['hooks']['permsdenied'] = false;
$conf['hooks']['username'] = false;
$conf['hooks']['preauthenticate'] = true;
$conf['hooks']['postauthenticate'] = false;
$conf['hooks']['authldap'] = false;
$conf['portal']['fixed_blocks'] = array();
$conf['accounts']['driver'] = 'null';
$conf['imsp']['enabled'] = false;
$conf['kolab']['enabled'] = false;

horde/imp/config/conf.php

$conf['utils']['gnupg_keyserver'] = array('pgp.mit.edu');
$conf['utils']['gnupg_timeout'] = '10';
$conf['menu']['apps'] = array('turba');
$conf['user']['select_sentmail_folder'] = false;
$conf['user']['allow_resume_all_in_drafts'] = true;
$conf['user']['allow_folders'] = true;
$conf['user']['allow_resume_all'] = true;
$conf['user']['allow_view_source'] = true;
$conf['user']['alternate_login'] = false;
$conf['user']['redirect_on_logout'] = false;
$conf['server']['change_server'] = false;
$conf['server']['change_port'] = false;
$conf['server']['change_protocol'] = false;
$conf['server']['change_smtphost'] = false;
$conf['server']['change_smtpport'] = false;
$conf['server']['server_list'] = 'none';
$conf['server']['sort_limit'] = '0';
$conf['server']['cache_folders'] = false;
$conf['server']['cache_msgbody'] = false;
$conf['mailbox']['show_attachments'] = false;
$conf['mailbox']['show_preview'] = false;
$conf['mailbox']['show_xpriority'] = false;
$conf['fetchmail']['show_account_colors'] = false;
$conf['fetchmail']['size_limit'] = '4000000';
$conf['msgsettings']['filtering']['words'] = './config/filter.txt';
$conf['msgsettings']['filtering']['replacement'] = '****';
$conf['spam']['reporting'] = false;
$conf['notspam']['reporting'] = false;
$conf['msg']['prepend_header'] = true;
$conf['msg']['append_trailer'] = true;
$conf['compose']['allow_cc'] = true;
$conf['compose']['allow_bcc'] = true;
$conf['compose']['allow_receipts'] = true;
$conf['compose']['special_characters'] = true;
$conf['compose']['use_vfs'] = false;
$conf['compose']['link_all_attachments'] = false;
$conf['compose']['link_attachments_notify'] = true;
$conf['compose']['link_attachments'] = true;
$conf['compose']['add_maildomain_to_unexpandable'] = false;
$conf['compose']['attach_size_limit'] = '0';
$conf['compose']['attach_count_limit'] = '0';
$conf['hooks']['vinfo'] = false;
$conf['hooks']['signature'] = false;
$conf['hooks']['trailer'] = false;
$conf['hooks']['fetchmail_filter'] = false;
$conf['hooks']['mbox_redirect'] = false;
$conf['hooks']['mbox_icon'] = false;
$conf['hooks']['spam_bounce'] = false;
$conf['maillog']['use_maillog'] = true;
$conf['tasklist']['use_tasklist'] = true;
$conf['notepad']['use_notepad'] = true;

希望各位大大給小弟指點一下迷津..感激不盡!! :'(
« 上次編輯: 2010-02-22 23:49 由 jakson »

jakson

  • 可愛的小學生
  • *
  • 文章數: 25
    • 檢視個人資料
回覆: horde 寄信出現錯誤訊息 , &#
« 回覆 #1 於: 2010-02-21 23:57 »
自問自答一下..

原來是post mail的設定有問題 , 修改
horde/config/conf.php
$conf['mailer']['params']['host'] = 'localhost';
$conf['mailer']['params']['port'] = 25;
$conf['mailer']['params']['localhost'] = 'localhost';
$conf['mailer']['params']['auth'] = '0';
$conf['mailer']['type'] = 'smtp';

改成smtp的方式發信就ok囉~ 預設sendmail的發信方式好像有點問題! :-\

horde真是個好東西阿~功能真是不錯!
« 上次編輯: 2010-02-21 23:59 由 jakson »

jakson

  • 可愛的小學生
  • *
  • 文章數: 25
    • 檢視個人資料
小弟花了好幾天終於完成 horde webmail
在此提供一下筆記心得
http://jakson.homeip.net/joomla/index.php?option=com_content&view=article&id=153:horde-webmail-&catid=63:linux-program&Itemid=121
另外 , 小弟仍有其他關於 horde 的疑問想請教各位大大
1. horde 在 IE8 左邊的 "郵件" 選單無法展開 , 有大大有這樣的問題嗎?
2. horde 有類似 openwebmail 的條件篩選郵件去向的功能嗎? ex. 標題含 [SPAM]  , 自動丟到垃圾信箱..
3. horde 如何搭配防毒軟體防毒呢?

還請各位大大指點一下小弟. 感激萬分!

TyroneYeh

  • 俺是博士!
  • *****
  • 文章數: 2396
  • 性別: 男
    • 檢視個人資料
1. 不會
2. 過濾器 ingo
3. 在 Mail server 上處理即可!
--
TyroneYeh

jakson

  • 可愛的小學生
  • *
  • 文章數: 25
    • 檢視個人資料
感謝大大的回應~
1.不曉得為什麼 , 小弟在家裡的電腦IE8無法展開 "郵件" 選項 , 但Firefox完全正常 @@"
2.感謝 , 小弟看到了
3.openwebmail的防毒功能需要另外設定,horde如何得知這封信件是有毒的信件呢?

Luke Lin

  • 活潑的大學生
  • ***
  • 文章數: 244
  • 性別: 男
  • 家裡的少爺
    • 檢視個人資料
3.openwebmail的防毒功能需要另外設定,horde如何得知這封信件是有毒的信件呢?
交給clamav吧
當好人叫行善  當壞人叫造孽 當爛好人叫自做孽

jakson

  • 可愛的小學生
  • *
  • 文章數: 25
    • 檢視個人資料
感謝大大回應
交給clamav的意思是?
小弟不才 , 不太懂大大的意思.

另外 , 小弟測試過許多電腦的IE8 , 發現右邊選項"郵件"都無法展開 , 其餘正常 , 目前找不到解決方法.. @@"
IE8開左邊目錄樹的 "+" 時 , 左邊的畫面都會跳一下 , 才會顯示裡面內容 , "郵件" 的 "+" 點下去時也跳了一下 , 但卻沒辦法展開
還請大大指示一下問題可能的方向 , 感謝!!

yufeng

  • 懷疑的國中生
  • **
  • 文章數: 86
    • 檢視個人資料
另外 , 小弟測試過許多電腦的IE8 , 發現右邊選項"郵件"都無法展開 , 其餘正常 , 目前找不到解決方法.. @@"
IE8開左邊目錄樹的 "+" 時 , 左邊的畫面都會跳一下 , 才會顯示裡面內容 , "郵件" 的 "+" 點下去時也跳了一下 , 但卻沒辦法展開
還請大大指示一下問題可能的方向 , 感謝!!

請問在 IE6 跟 IE7 裡正常嗎?

先在 IE8 裡試試 『工具』→『相容性檢視』

如果恢復正常的話, 請在你的網頁裡加上 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">

jakson

  • 可愛的小學生
  • *
  • 文章數: 25
    • 檢視個人資料
IE6 目前測試正常 , 只是圖片有些圖示無法正確顯示 :-\
IE7 還沒測試過
IE8 經過大大的指示 , 果然是相容性的問題 , 但.. 小弟愚昧 , 不知道要將
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
這行加到horde的那個檔案的那個位置呢?

目前是加到"相容性檢視設定",就可以正常瀏覽,但畢竟不是根本解決之道..對使用者來說還需要多一層設定 , 顯得有點麻煩 ><!

yufeng

  • 懷疑的國中生
  • **
  • 文章數: 86
    • 檢視個人資料
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
這行加到horde的那個檔案的那個位置呢?

<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">   
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
.
.
.
</head>