Fedora Core 4

 

[1.] yum install perl-Compress-Zlib perl-Text-Iconv perl-suidperl

[2.] wget http://openwebmail.org/openwebmail/download/redhat/rpm/release/openwebmail-2.52-1.i386.rpm

 

[3.] rpm -ivh openwebmail-2.52-1.i386.rpm

 

[4.] vi /var/www/cgi-bin/openwebmail/etc/defaults/dbm.conf

dbm_ext                 .db
dbmopen_ext         .db
dbmopen_haslock  no

      /var/www/cgi-bin/openwebmail/openwebmail-tool.pl –init

 

[5.] vi /var/www/cgi-bin/openwebmail/etc/openwebmail.conf

# 更改 domainname

domainnames  ssorc.tw

# 更改語言

default_language zh_TW.Big5

 

# 圖示種類

default_iconset Cool3D.Chinese.Traditional

# 垃圾桶信件保留天數

default_trashreserveddays 999999

 

# 廣告與病毒信件保留天數
default_spamvirusreserveddays 999999

[6.] view http://ssorc.tw/cgi-bin/openwebmail/openwebmail.pl

 

         接著可至 Pref更改個人偏好設定

 

ref: http://turtle.ee.ncku.edu.tw/~tung/openwebmail/

 

[Q1:]

Software error:

Undefined subroutine &ow::htmltext::str2html called at /var/www/cgi-bin/openwebmail/shares/ow-shared.pl line 1283.

For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.

[A1:] vi /var/www/cgi-bin/openwebmail/etc/openwebmail.conf

require "modules/htmltext.pl";

 

[Q2:] 於瀏覽器上顯示的訊息

'/var/www/cgi-bin/openwebmail/openwebmail.pl' must setuid to root

[A2:] chmod 4755 /var/www/cgi-bin/openwebmail/openwebmail*.pl


2006/10/15 式了下面的不成功

OpenWebMail + ClamAV

[1.] install clamav

       start clamav

 

[2.] vi /var/www/cgi-bin/openwebmail/etc/openwebmail.conf

enable_viruscheck yes
viruscheck_pipe /usr/bin/clamdscan –config-file=/etc/clamd.d/clamd.conf –log=/var/log/clamdscan.log –disable-summary –stdout –
viruscheck_source_allowed all

       touch /var/log/clamdscan.log

       chmod 660 /var/log/clamdscan.log

 

OpenWebMail + Spamassassin

[1.] 安裝方式參考,但略過第四個步驟

         http://openwebmail.org/openwebmail/download/redhat/howto/spam/howto.txt

 

[2.] vi /var/www/cgi-bin/openwebmail/etc/openwebmail.conf

enable_spamcheck yes
spamcheck_source_allowed all
spamcheck_pipe /usr/bin/spamc -c -x -t60 -u @@@USERNAME@@@

 

enable_learnspam yes
learnham_pipe /usr/bin/sa-learn –local –ham
learnspam_pipe /usr/bin/sa-learn –local –spam

ref: http://www.neo.com.tw/archives/000339.html

替 OpenWebMail作重導的動作
vi /etc/httpd/conf/httpd.conf

<VirtualHost *:80>
    DocumentRoot /var/www/html/data/openwebmail
    ServerName owm.ssorc.tw
    ErrorLog logs/owm.ssorc.tw-error_log
    CustomLog logs/owm.ssorc.tw-access_log common
    TransferLog logs/owm.ssorc.tw-transfer_log
    DirectoryIndex redirect.html
</VirtualHost>

vi /var/www/data/openwebmail/redirect.html

<html>
<head><meta http-equiv="Refresh" content="0;URL=/cgi-bin/openwebmail/openwebmail.pl">
</head>
<body onload="window.open('/cgi-bin/openwebmail/openwebmail.pl','_top')">
</body>
</html>

郵件過濾規則

個人
   ~/.openwebmail/webmail/filter.book

共用
   /var/www/cgi-bin/openwebmail/etc/filter.book

內容如下

01@@@subject@@@include@@@game@@@move@@@mail-trash@@@1@@@big5

參數說明:

01:郵件規則優先順序.
subject:郵件規則過濾條件在郵件主旨中生效.
include:郵件規則過濾條件包含或不包含下列設定的關鍵字
game:郵件規則的關鍵字.
move:將垃圾信件搬移或複製的目的信匣.
mail-trash:設定垃圾信件的目的信匣.
1:設定的郵件規則過濾條件生效.
big5:設定郵件規則的語系.

ref: http://blog.nanaimoinn.com/index.php?blog=3&title=ab_af_a_uopenwebmailacsaira_sa_a_dac_a_p&more=1&c=1&tb=1&pb=1

最後修改日期: 2006 年 11 月 14 日

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。