cd /usr/src
fetch http://people.freebsd.org/~delphij/patch-SMP
patch 重新編譯內核并重新啟動。
#這是針對5.3 SMP的delphij大哥做的補丁,
cd /sys/contrib/ipfilter/netinet/
patch 這個是針對ip_nat的一個補丁,也可以自己手動注釋,改了ip_nat的參數以后編譯內核會提示兩個變量沒有定義。
cd /usr/src
make buildkernel KERNCONF=proxy
make installkernel KERNCONF=proxy
reboot
這種編譯方法將保留原來的kernel為kernel.old,
這樣如果你做錯了什么,就有機會通過boot:出現時輸入kernel.old來恢復。
######如果用config/make編譯內核的會在/usr/src產生很多中間文件#########
cd /usr/src/sys/i386/conf
/usr/sbin/config proxy
cd ../compile/proxy
make depend
make
make install
reboot
#########################################################################
# cd /usr/local/etc/mail/spamassassin
# env LANG=C vi local.cf
=============================== local.cf ===============================
# SpamAssassin config file for version x.xx
# generated by http://www.yrex.com/spam/spamconfig.php (version 1.01)
# How many hits before a message is considered spam.
required_hits 4.0
# Whether to change the subject of suspected spam
rewrite_subject 1
# Text to prepend to subject if rewrite_subject is used
subject_tag *****SPAM*****
# Encapsulate spam in an attachment
report_safe 1
# Use terse version of the spam report
use_terse_report 0
# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
# - chinese english
ok_languages zh en
# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales en zh
score SUBJ_FULL_OF_8BITS 2
score NO_REAL_NAME 4.0
=============================== local.cf ===============================
3.2 下載新的垃圾郵件地址列表文件
# cd /usr/local/share/spamassassin
# fetch http://anti-spam.org.cn/rules/sa/55_diy_score.cf