這裏顯示兩個版本的差異處。
| Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
|
mail:postfix [2010/02/20 00:23] wenpei |
mail:postfix [2011/05/22 19:58] (目前版本) wenpei |
||
|---|---|---|---|
| 行 87: | 行 87: | ||
| ====== Reference ====== | ====== Reference ====== | ||
| Postfix 技術手冊:http://books.google.com/books?id=H9yrO841raoC | Postfix 技術手冊:http://books.google.com/books?id=H9yrO841raoC | ||
| - | |||
| ====== Amavisd - Anti-Spam / Anti-Virus ====== | ====== Amavisd - Anti-Spam / Anti-Virus ====== | ||
| + | ===== For FreeBSD ===== | ||
| + | http://www.wretch.cc/blog/chuchiming/15421032 | ||
| + | |||
| + | http://blog.weithenn.org/2009/06/freebsdpostfix-amavisd-new-uvscan.html | ||
| + | |||
| 經由 Amavisd 橋接,過濾垃圾信及病毒信。 | 經由 Amavisd 橋接,過濾垃圾信及病毒信。 | ||
| 行 100: | 行 104: | ||
| $sa_kill_level_deflt = 25; # triggers spam evasive actions (e.g. blocks mail) | $sa_kill_level_deflt = 25; # triggers spam evasive actions (e.g. blocks mail) | ||
| | | ||
| - | 三個數值可依照需要修改。取消 ClamAV 的註解,並註解掉其他用不到的防毒方式。 | + | 三個數值可依照需要修改。 |
| + | |||
| + | 設定各種問題信件的命運: | ||
| + | <code> | ||
| + | # $final_virus_destiny = D_DISCARD; | ||
| + | # $final_banned_destiny = D_BOUNCE; | ||
| + | # $final_spam_destiny = D_BOUNCE; | ||
| + | $final_bad_header_destiny = D_PASS; | ||
| + | </code> | ||
| + | |||
| + | 取消 ClamAV 的註解,並註解掉其他用不到的防毒方式。 | ||
| # ### http://www.clamav.net/ | # ### http://www.clamav.net/ | ||
| 行 132: | 行 146: | ||
| 編輯 /etc/rc.conf,加上 | 編輯 /etc/rc.conf,加上 | ||
| amavisd_enable="YES" | amavisd_enable="YES" | ||
| + | |||
| + | 編輯 /etc/group,將 amavis 加入 clamav 的群組中,也將 clamav 加入 amavis 群組中 | ||
| | | ||
| - | 重新啟動 postfix、amavisd。 | + | 重新啟動 postfix、amavisd、clameav。 |
| - | + | ==== 參考 ==== | |
| - | + | ||
| - | ===== 參考 ===== | + | |
| * http://www.ijs.si/software/amavisd/ | * http://www.ijs.si/software/amavisd/ | ||
| * http://antbsd.twbbs.org/~ant/FNP/Old/amavisd-new.htm | * http://antbsd.twbbs.org/~ant/FNP/Old/amavisd-new.htm | ||
| * http://www.freebsddiary.org/virus-scanning.php | * http://www.freebsddiary.org/virus-scanning.php | ||
| + | * http://www200.pair.com/mecham/spam/bypassing.html | ||
| + | * http://wiki.shsh.ylc.edu.tw/index.php/MailServer | ||
| + | ===== Debian ===== | ||
| + | http://www.debian.org.tw/index.php/Amavisd-new | ||