Spamassassin 的安裝問題

 
發表新主題   回覆主題    尊龍佈告欄 首頁 -> 雷電MAILD (mail server)
上一篇文章 :: 下一篇文章  
發表人 內容
netyale
一級


註冊時間: 2007-04-23
文章: 7

發表發表於: 星期二 五月 29, 2007 6:44 pm    文章標題: Spamassassin 的安裝問題 引言回覆

素大您好

想請問一下
我在安裝Spamassassin時
一步一步造著做
進行到nmake install這步驟
會出現下列錯誤訊息

===============================================

C:\perl\bin\perl.exe -MExtUtils::Command -e cp sa-learn blib\script\sa-learnpl2bat.bat blib\script\sa-learn
C:\perl\bin\perl.exe -MExtUtils::Command -e cp spamassassinblib\script\spamassassinpl2bat.bat blib\script\spamassassin
C:\perl\bin\perl.exe -MExtUtils::Command -e cp sa-update blib\script\sa-updatepl2bat.bat blib\script\sa-update
Appending installation info to c:\perl\lib/perllocal.pod
C:\perl\bin\perl.exe "-MExtUtils::Command" -e mkpath c:\perl\site/etc/mail/spamassassin
C:\perl\bin\perl.exe -MFile::Copy -e "copy(q{rules/local.cf}, q{c:\perl\site/etc/mail/spamassassin/local.cf}) unless -f q{c:\perl\site/etc/mail/spamassassin/local.cf}"
C:\perl\bin\perl.exe -MFile::Copy -e "copy(q{rules/init.pre}, q{c:\perl\site/etc/mail/spamassassin/init.pre}) unless -f q{c:\perl\site/etc/mail/spamassassin/init.pre}"
C:\perl\bin\perl.exe -MFile::Copy -e "copy(q{rules/v310.pre}, q{c:\perl\site/etc/mail/spamassassin/v310.pre}) unless -f q{c:\perl\site/etc/mail/spamassassin/v310.pre}"
C:\perl\bin\perl.exe "-MExtUtils::Command" -e mkpath c:\perl\site/share/spamassassin
C:\perl\bin\perl.exe -e "map unlink, <c>"
C:\perl\bin\perl.exe build/preprocessor -Mvars -DVERSION="3.001000" -DPREFIX="c:\perl\site" -DDEF_RULES_DIR="c:\perl\site/share/spamassassin" -DLOCAL_RULES_DIR="c:\perl\site/etc/mail/spamassassin" -DINSTALLSITELIB="c:\perl\site\lib" -DCONTACT_ADDRESS="spam@hotmail.com" -m644 -Irules -Oc:\perl\site/share/spamassassin 10_misc.cf 20_advance_fee.cf 20_anti_ratware.cf 20_body_tests.cf 20_compensate.cf 20_dnsbl_tests.cf 20_drugs.cf 20_fake_helo_tests.cf 20_head_tests.cf 20_html_tests.cf 20_meta_tests.cf 20_net_tests.cf 20_phrases.cf 20_porn.cf 20_ratware.cf 20_uri_tests.cf 23_bayes.cf 25_accessdb.cf 25_antivirus.cf 25_body_tests_es.cf 25_body_tests_pl.cf 25_dcc.cf 25_domainkeys.cf 25_hashcash.cf 25_pyzor.cf 25_razor2.cf 25_replace.cf 25_spf.cf 25_textcat.cf 25_uribl.cf 30_text_de.cf 30_text_fr.cf 30_text_it.cf 30_text_nl.cf 30_text_pl.cf 30_text_pt_br.cf 50_scores.cf 60_awl.cf 60_whitelist.cf 60_whitelist_spf.cf 60_whitelist_subject.cf user_prefs.template triplets.txt languages
C:\perl\bin\perl.exe -MExtUtils::Command -e chmod 755 c:\perl\site/share/spamassassin


===============================================

感覺像是Windows版與Linux版的不同造成的
這會造成之後在sa-learn時
會出現下列錯誤訊息


===============================================

C:\Mail-SpamAssassin-3.1.0>sa-learn --spam c:\spam
bayes: cannot open bayes databases C:\Documents and Settings\Test/.spamassassi
n/bayes_* R/W: tie failed: Invalid argument
bayes: cannot open bayes databases C:\Documents and Settings\Test/.spamassassi
n/bayes_* R/W: tie failed: Invalid argument
ERROR: the Bayes learn function returned an error, please re-run with -D for mor
e information


===============================================

我想如果我解決這問題之後
可以幫素大做一份Spamassassin深入的說明文件
感激感激.....


回頂端
檢視會員個人資料 發送私人訊息
Arnor
究極の素還尊
究極の素還尊


註冊時間: 2001-11-07
文章: 13008
來自: TAIWAN

發表發表於: 星期三 五月 30, 2007 11:57 am    文章標題: 引言回覆

C:\Documents and Settings\Test/.spamassassin/


你有這目錄?


sa-learn 這我不會. 所以無法給建議.
之前有使用者有用成, 你可以參考文章
http://www.raidenhttpd.com/jlbb/viewtopic.php?t=13256
_________________
*若是想問問題的話, 請務必不要塗改任何 IP, 網域資料, 您若不願貼上IP或網域, 請改以電子郵件來詢問. 謝謝您的配合.*
*若是回報疑似軟體的運行或邏輯或資料處理有誤的問題, 小弟很樂意去了解您的情況, 但請務必以最新版來做回報, 如果以郵件詢問, 請參考 http://www.raidenmaild.com/tw/feedback.html 的說明, 最好標題加個 RaidenMAILD 字樣, 才不致會遺漏了您的信唷. 謝謝您的配合^^*
*在版上發文請遵守網路禮儀, 並請持著虛心敘述問題請教他人, 凡發現違反的文, 均一律刪除為優先, 不另行通知喔.
*與使用者教學相長腦力激盪是我輩成就感的來源, 誠心希望您能不吝指教.
*雷電MAILD 知識庫文件 http://www.raidenmaild.com/tw/kb/

素還尊
Team John Long.
Email: arnor@raidenmaild.com
公司網站 http://www.raidenmaild.com/company/
回頂端
檢視會員個人資料 發送私人訊息 發送電子郵件
kcsboy
三段
三段


註冊時間: 2005-08-30
文章: 65
來自: 中華民國

發表發表於: 星期五 六月 08, 2007 2:12 am    文章標題: Re: Spamassassin 的安裝問題 引言回覆

netyale 寫到:
素大您好

想請問一下
我在安裝Spamassassin時
一步一步造著做
進行到nmake install這步驟
會出現下列錯誤訊息



按部就班作應該不會出錯。
我想是你安裝到錯誤的版本。

1. 首先

ActivePerl --- (一般安裝Windows (x86))
http://www.activestate.com/store/download.aspx?prdGUID=81fbce82-6bd5-49bc-a915-08d58c2648ca

SpamAssassin --- (現在是3.2.0 此版我沒試過,3.1.8 有bug,3.1.7可以用)
http://ftp.cuhk.edu.hk/pub/packages/apache.org/spamassassin/source/Mail-SpamAssassin-3.2.0.zip

接下來。
步驟2~步驟9 都跟原來一樣。只是你下載的spamassassin 會影響你的目錄名稱
如C:\Mail-SpamAssassin-3.1.0 ==> C:\Mail-SpamAssassin-3.2.0

接下來。
步驟10,步驟11 可以不要做

步驟13, 是測試動作,如果你肯定OK,就不用測了

步驟15
調整SpamAssassinVBS.vbs 的重要程度。是會影響你能不能用的

;-------------
以上做完我們可以說Spamassassin已經可以運作
可是還不能做得很完美
1.
再來修改 local.cf ,可以讓你的判斷更強

參考參考

http://home.so-net.net.tw/huangslite/maild/kcsboy-local.cf 網址那邊再按一次Enter,不然會連線錯誤

2.
啟動sa-learn 可以自動學習
2.a Perl Package Manager 中啟動 DB_File
2.b 安裝微軟的 rktools.exe
3.c 下載 SpamAutoLearn.bat[/url]
_________________
Platform:2003
Firewall:ISA
Virus:IMSS
回頂端
檢視會員個人資料 發送私人訊息
netyale
一級


註冊時間: 2007-04-23
文章: 7

發表發表於: 星期一 六月 11, 2007 5:10 pm    文章標題: 引言回覆

感謝kcsboy
漸漸摸索出一點頭緒
更換新版之後
就沒事了

另外我也發現
應該是因為登入帳號不能是中文的樣子
不然就會出問題

再想請教一下
因為local.cf在三個地方都有
c:\etc\mail\spamassassin
c:\Mail-SpamAssassin-3.1.0\rules
c:\perl\site\etc\mail\spamassassin

這些有什麼分別
要設定在哪才會生效呢?

感激不盡...
回頂端
檢視會員個人資料 發送私人訊息
從之前的文章開始顯示:   
發表新主題   回覆主題    尊龍佈告欄 首頁 -> 雷電MAILD (mail server) 所有的時間均為 台北時間 (GMT + 8 小時)
1頁(共1頁)

 
前往:  
無法 在這個版面發表文章
無法 在這個版面回覆文章
無法 在這個版面編輯文章
無法 在這個版面刪除文章
無法 在這個版面進行投票


Powered by phpBB © 2001-2007 phpBB Group