終結垃圾郵件:文章已於電子情報雜誌2007/1刊出
"終結垃圾郵件-開放源碼界的解決方案", 電子情報, 2007/1, pp.233-266.
感謝電子情報雜誌刊出我的作品, 這篇文章提供大家一個如何架設免費的垃圾郵件過濾主機的方法, 並討論一些相關的議題, 對於企業郵件主機的管理人應該相當實用! 歡迎大家多加參考!
以下先節錄片段, 完整文章請先到本期電子情報雜誌參閱!
1. 安裝FreeBSD
A. 由網頁www.tw.freebsd.org 下載ISO image檔(CD1)
B. 由光碟開機, 進入安裝程序
2. 取得Ports, 並利用Cvsup更新Ports
A. ftp ftp.tw.freebsd.org
B. cd /pub/ports/ports/
C. 取得ports.tar.gz
D. 解壓縮, 得到ports目錄
E. 安裝Cvsup
F. 編輯ports-supfile設定檔, 將CVSup 伺服器設為 cvsup.tw.freebsd.org,這一台伺服器是由交大資工所維護
G. 開始更新
ibm-fb60# ftp ftp.tw.freebsd.org
Connected to freebsd.csie.nctu.edu.tw.
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 40 of 1000 allowed.
220-Local time is now 09:00. Server port: 21.
220-Only anonymous FTP is allowed here
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Name (ftp.tw.freebsd.org:ops): anonymous
331 Any password will work
Password:
230 Any password will work
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /pub/ports/ports
250 OK. Current directory is /pub/ports/ports
ftp> ls
227 Entering Passive Mode (140,113,17,209,255,103)
150 Accepted data connection
-rw-rw-r-- 1 888 2010 1006 Jun 19 2004 README.TXT
-rw-rw-r-- 1 888 2010 27895894 Jun 1 2005 ports.tar.gz
226-Options: -l
226 2 matches total
ftp> bin
200 TYPE is now 8-bit binary
ftp> lcd /usr
Local directory now: /usr
ftp> get ports.tar.gz
…
ftp> bye
221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
221 Logout.
ibm-fb60# tar -zxvf ports.tar.gz
…
ibm-fb60# cd /usr/ports/net/cvsup-without-gui
ibm-fb60# make install clean
…
ibm-fb60# cp /usr/share/examples/cvsup/ports-supfile /root/
ibm-fb60# cd /root
ibm-fb60# vi ports-supfile
# IMPORTANT: Change the next line to use one of the CVSup mirror sites
# listed at http://www.freebsd.org/doc/handbook/mirrors.html.
*default host=cvsup.tw.FreeBSD.org
ibm-fb60# /usr/local/bin/cvsup -g -L 2 /root/ports-supfile
3. 利用Ports安裝Sendmail
A. cd /usr/ports/mail/sendmail-sasl並下make install clean
B. 將/usr/local/etc/rc.d下的sendmail.sh.sample及sm-client.sh.sample各自拷貝一份沒有.sample的檔案
C. 重新開機
ibm-fb60# cd /usr/ports/mail/sendmail-sasl
ibm-fb60# make install clean
…
ibm-fb60# cd /usr/local/etc/rc.d
ibm-fb60# cp sendmail.sh.sample sendmail.sh
ibm-fb60# cp sm-client.sh.sample sm-client.sh
ibm-fb60# sync;sync;sync
ibm-fb60# reboot
4. 利用Ports安裝GrayList
A. cd /usr/ports/mail/milter-greylist並下make install clean
B. 到/usr/local/etc/mail, 設定greylist.conf
C. 在/etc/rc.conf中加一行: miltergreylist_enable="YES"
ibm-fb60# cd /usr/ports/mail/milter-greylist
ibm-fb60# make install clean
…
ibm-fb60# cd /usr/local/etc/mail
ibm-fb60# cp greylist.conf.sample greylist.conf
ibm-fb60# vi greylist.conf
…
ibm-fb60# vi /etc/rc.conf
…
感謝電子情報雜誌刊出我的作品, 這篇文章提供大家一個如何架設免費的垃圾郵件過濾主機的方法, 並討論一些相關的議題, 對於企業郵件主機的管理人應該相當實用! 歡迎大家多加參考!
以下先節錄片段, 完整文章請先到本期電子情報雜誌參閱!
1. 安裝FreeBSD
A. 由網頁www.tw.freebsd.org 下載ISO image檔(CD1)
B. 由光碟開機, 進入安裝程序
2. 取得Ports, 並利用Cvsup更新Ports
A. ftp ftp.tw.freebsd.org
B. cd /pub/ports/ports/
C. 取得ports.tar.gz
D. 解壓縮, 得到ports目錄
E. 安裝Cvsup
F. 編輯ports-supfile設定檔, 將CVSup 伺服器設為 cvsup.tw.freebsd.org,這一台伺服器是由交大資工所維護
G. 開始更新
ibm-fb60# ftp ftp.tw.freebsd.org
Connected to freebsd.csie.nctu.edu.tw.
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 40 of 1000 allowed.
220-Local time is now 09:00. Server port: 21.
220-Only anonymous FTP is allowed here
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Name (ftp.tw.freebsd.org:ops): anonymous
331 Any password will work
Password:
230 Any password will work
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /pub/ports/ports
250 OK. Current directory is /pub/ports/ports
ftp> ls
227 Entering Passive Mode (140,113,17,209,255,103)
150 Accepted data connection
-rw-rw-r-- 1 888 2010 1006 Jun 19 2004 README.TXT
-rw-rw-r-- 1 888 2010 27895894 Jun 1 2005 ports.tar.gz
226-Options: -l
226 2 matches total
ftp> bin
200 TYPE is now 8-bit binary
ftp> lcd /usr
Local directory now: /usr
ftp> get ports.tar.gz
…
ftp> bye
221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
221 Logout.
ibm-fb60# tar -zxvf ports.tar.gz
…
ibm-fb60# cd /usr/ports/net/cvsup-without-gui
ibm-fb60# make install clean
…
ibm-fb60# cp /usr/share/examples/cvsup/ports-supfile /root/
ibm-fb60# cd /root
ibm-fb60# vi ports-supfile
# IMPORTANT: Change the next line to use one of the CVSup mirror sites
# listed at http://www.freebsd.org/doc/handbook/mirrors.html.
*default host=cvsup.tw.FreeBSD.org
ibm-fb60# /usr/local/bin/cvsup -g -L 2 /root/ports-supfile
3. 利用Ports安裝Sendmail
A. cd /usr/ports/mail/sendmail-sasl並下make install clean
B. 將/usr/local/etc/rc.d下的sendmail.sh.sample及sm-client.sh.sample各自拷貝一份沒有.sample的檔案
C. 重新開機
ibm-fb60# cd /usr/ports/mail/sendmail-sasl
ibm-fb60# make install clean
…
ibm-fb60# cd /usr/local/etc/rc.d
ibm-fb60# cp sendmail.sh.sample sendmail.sh
ibm-fb60# cp sm-client.sh.sample sm-client.sh
ibm-fb60# sync;sync;sync
ibm-fb60# reboot
4. 利用Ports安裝GrayList
A. cd /usr/ports/mail/milter-greylist並下make install clean
B. 到/usr/local/etc/mail, 設定greylist.conf
C. 在/etc/rc.conf中加一行: miltergreylist_enable="YES"
ibm-fb60# cd /usr/ports/mail/milter-greylist
ibm-fb60# make install clean
…
ibm-fb60# cd /usr/local/etc/mail
ibm-fb60# cp greylist.conf.sample greylist.conf
ibm-fb60# vi greylist.conf
…
ibm-fb60# vi /etc/rc.conf
…
留言