修改 var/www/cgi-bin/openwebmail/openwebmail-send.pl
########## HTMLAREA_COMPATIBLE ###################################
sub htmlarea_compatible {
my $u=$ENV{'HTTP_USER_AGENT'};
if ( $u=~m!Mozilla/4.0! &&
$u=~m!compatible;!) {
return 0 if ($u=~m!Opera!); # not Opera
if ($u=~m!Windows! &&
$u=~m!MSIE ([\d\.]+)! ) {
return 1 if ($1>=5.5); # MSIE>=5.5 on windows platform
}
}
if ( $u=~m!Mozilla/5.0! &&
$u!~m!compatible;!) {
if ($u!~m!(?:Phoenix|Galeon|Firebird)/! &&
$u=~m!rv:([\d\.]+)! ) {
return 1 if ($1 ge "1.3"); # full Mozilla>=1.3 on all plaform
}
if ($u=~m!Firebird/([\d\.]+)!) {
return 1 if ($1 ge "0.6.1"); # Firebird>=0.6.1 on all plaform
}
}
return 1; <==更改為0
}
########## END HTMLAREA_COMPATIBLE ###############################
2014年6月17日 星期二
2014年5月27日 星期二
ClamAV freshclam 失敗
/etc/cron.daily/freshclam:
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
網路查詢到這篇文章
http://chaeltung.blogspot.tw/2013/06/freshclam.html
# chown clam:clam /var/log/clamav/freshclam.log
# chown clam:clam /var/log/clamav/clamd.log
但我需要改成
# chown clamav:clamav /var/log/clamav/freshclam.log
# chown clamav:clamav /var/log/clamav/clamd.log
隔天收到錯誤訊息
/etc/cron.daily/freshclam:
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
執行
#freshclam
ERROR: Can't open /var/clamav/mirrors.dat for writing
執行
# clamscan -v
Detected duplicate databases /var/clamav/main.cvd and /var/clamav/main.cld, please
manually remove one of them
找到這篇文章,依文章執行
http://ithelp.ithome.com.tw/question/10069867
***
之後還有問題,發現檔案權限不對更改相關檔案權限為clam後已解決。
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
網路查詢到這篇文章
http://chaeltung.blogspot.tw/2013/06/freshclam.html
# chown clam:clam /var/log/clamav/freshclam.log
# chown clam:clam /var/log/clamav/clamd.log
但我需要改成
# chown clamav:clamav /var/log/clamav/freshclam.log
# chown clamav:clamav /var/log/clamav/clamd.log
隔天收到錯誤訊息
/etc/cron.daily/freshclam:
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
執行
#freshclam
ERROR: Can't open /var/clamav/mirrors.dat for writing
執行
# clamscan -v
Detected duplicate databases /var/clamav/main.cvd and /var/clamav/main.cld, please
manually remove one of them
找到這篇文章,依文章執行
http://ithelp.ithome.com.tw/question/10069867
***
之後還有問題,發現檔案權限不對更改相關檔案權限為clam後已解決。
2014年5月6日 星期二
2014年4月20日 星期日
2014年4月6日 星期日
centos6 openwebmail 公用郵件規則
centos6 openwebmail 公用郵件規則
路徑 /var/www/cgi-bin/openwebmail/etc/filter.book
範例
10@@@subject@@@include@@@Spam@@@Spam-mail@@@1@@@utf-8
可先至個人郵件規則設定後拷貝資料到公用規則
個人郵件規則
路徑/home/id/.openwebmail/webmail/filter.book
路徑 /var/www/cgi-bin/openwebmail/etc/filter.book
範例
10@@@subject@@@include@@@Spam@@@Spam-mail@@@1@@@utf-8
可先至個人郵件規則設定後拷貝資料到公用規則
個人郵件規則
路徑/home/id/.openwebmail/webmail/filter.book
2014年3月29日 星期六
Centos6 安裝Chrome
Google沒有提供Centos版本,原因我就不知了。
網路查詢可已安裝開發版本Chromium
可參考2篇文章
http://purplebleed.pixnet.net/blog/post/133018924-centos-6-%E4%B8%8A%E5%AE%89%E8%A3%9Dchrome
http://www.if-not-true-then-false.com/2013/install-chromium-on-centos-red-hat-rhel/
文章中的
vi /opt/chromium/chrome-wrapper
更改為
vi /opt/chromium-browser/chrome-browser
一樣在最後一行加上
--user-data-dir
可在root下執行
安裝時Chromium版本為31.0.1652.63
Centos版本為6.5
網路查詢可已安裝開發版本Chromium
可參考2篇文章
http://purplebleed.pixnet.net/blog/post/133018924-centos-6-%E4%B8%8A%E5%AE%89%E8%A3%9Dchrome
http://www.if-not-true-then-false.com/2013/install-chromium-on-centos-red-hat-rhel/
文章中的
vi /opt/chromium/chrome-wrapper
更改為
vi /opt/chromium-browser/chrome-browser
一樣在最後一行加上
--user-data-dir
可在root下執行
安裝時Chromium版本為31.0.1652.63
Centos版本為6.5
訂閱:
文章 (Atom)