2007年8月21日

openwebmail 基本設定

老樣子,一樣是RHEL4平台/Postfix/Openwebmail的搭配,一樣是為了日漸消逝的記憶力。
早已是全面UTF-8的時代,卻被逼著得使用這跛腳的Big5,Hotmail/Gmail都已經Unicode很久啦!
台灣 Yahoo!加點油吧!


$vi /etc/httpd/conf/httpd.conf
AddLanguage zh-TW .zh-tw #增加支援正體中文
LanguagePriority zh-tw en da nl et fr de el it ja kr no pl pt pt-br ltz ca es sv #以正體中文為優先

當我們登錄openwebmail系統時會依序讀取 ,後面檔案若有相同設定將覆蓋前者。
/var/www/cgi-bin/openwebmail/etc/default/openwebmail.conf.default
(除路徑部分外,其餘偏好設定都到下一個檔案再設定較方便)
/var/www/cgi-bin/openwebmail/etc/openwebmail.conf
/home/user/.openwebmail/openwebmailrc
(全域設定中偏好部分僅供USER初次設定參考,必須清除現有USER個人設定檔才有用)

最後再將登錄的資料寫入/home/user/.openwebmail/history.log中。

/var/www/cgi-bin/openwebmail/etc/default/openwebmail.conf.default
#ow_cgidir /usr/local/www/cgi-bin/openwebmail
ow_cgidir /var/www/cgi-bin/openwebmail
ow_cgiurl /cgi-bin/openwebmail
#ow_htmldir /usr/local/www/data/openwebmail
ow_htmldir /var/www/data/openwebmail
ow_etcdir %ow_cgidir%/etc
ow_templatesdir %ow_etcdir%/templates
vacationinit %ow_cgidir%/vacation.pl -i
vacationpipe %ow_cgidir%/vacation.pl -t60s
(會在這邊多此一舉修改cgidir與htmldir變數,是因為一堆ow_開頭與vacation都抓這檔案設定)

/var/www/cgi-bin/openwebmail/etc/openwebmail.conf
#default_language auto
default_language zh_TW.Big5
#Open WebMail Project (http://openwebmail.org)
Transworld Institute of Technology (http://www.tit.edu.tw)
#default_hourformat 12 (時間格式)
default_hourformat 24
#default_msgsperpage 20 (每頁顯示幾封信)
default_msgsperpage 50
#default_moveoldmsgfrominbox no (登出時將已讀信件搬到收件匣)
default_moveoldmsgfrominbox yes
# Message Reading Options
#default_readwithmsgcharset no (使用信件語系閱讀)
default_readwithmsgcharset yes
#default_showhtmlastext yes (以純文字方式顯示HTML)
default_showhtmlastext no
#default_showimgaslink yes (將圖片以附件方式顯示)
default_showimgaslink no

沒有留言:

張貼留言