mail:postfix
差異處
這裏顯示兩個版本的差異處。
| 兩邊的前次修訂版前次修改 下次修改 | 前次修改 | ||
| mail:postfix [2010/02/19 16:17] – wenpei | mail:postfix [2011/05/22 19:58] (目前版本) – wenpei | ||
|---|---|---|---|
| 行 87: | 行 87: | ||
| ====== Reference ====== | ====== Reference ====== | ||
| Postfix 技術手冊:http:// | Postfix 技術手冊:http:// | ||
| + | ====== Amavisd - Anti-Spam / Anti-Virus ====== | ||
| + | ===== For FreeBSD ===== | ||
| + | http:// | ||
| + | http:// | ||
| + | |||
| + | 經由 Amavisd 橋接,過濾垃圾信及病毒信。 | ||
| + | |||
| + | portinstall security/ | ||
| + | | ||
| + | 編輯 amavisd.conf 設定 | ||
| + | $mydomain = ' | ||
| + | $sa_spam_subject_tag = ' | ||
| + | $sa_tag_level_deflt | ||
| + | $sa_tag2_level_deflt = 6; # add 'spam detected' | ||
| + | $sa_kill_level_deflt = 25; # triggers spam evasive actions (e.g. blocks mail) | ||
| + | | ||
| + | 三個數值可依照需要修改。 | ||
| + | |||
| + | 設定各種問題信件的命運: | ||
| + | < | ||
| + | # $final_virus_destiny | ||
| + | # $final_banned_destiny | ||
| + | # $final_spam_destiny | ||
| + | $final_bad_header_destiny = D_PASS; | ||
| + | </ | ||
| + | |||
| + | 取消 ClamAV 的註解,並註解掉其他用不到的防毒方式。 | ||
| + | |||
| + | # ### http:// | ||
| + | [' | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | 編輯 postfix/ | ||
| + | < | ||
| + | smtp-amavis unix - - n - 2 smtp | ||
| + | -o disable_dns_lookups=yes | ||
| + | -o smtp_send_xforward_command=yes | ||
| + | |||
| + | 127.0.0.1: | ||
| + | -o content_filter= | ||
| + | -o local_recipient_maps= | ||
| + | -o relay_recipient_maps= | ||
| + | -o smtpd_restriction_classes= | ||
| + | -o smtpd_client_restrictions= | ||
| + | -o smtpd_helo_restrictions= | ||
| + | -o smtpd_sender_restrictions= | ||
| + | -o smtpd_recipient_restrictions=permit_mynetworks, | ||
| + | -o mynetworks=127.0.0.0/ | ||
| + | -o strict_rfc821_envelopes=yes | ||
| + | </ | ||
| + | |||
| + | 編輯 postfix/ | ||
| + | content_filter = smtp-amavis: | ||
| + | |||
| + | 編輯 / | ||
| + | amavisd_enable=" | ||
| + | |||
| + | 編輯 / | ||
| + | | ||
| + | 重新啟動 postfix、amavisd、clameav。 | ||
| + | ==== 參考 ==== | ||
| + | * http:// | ||
| + | * http:// | ||
| + | * http:// | ||
| + | * http:// | ||
| + | * http:// | ||
| + | |||
| + | ===== Debian ===== | ||
| + | http:// | ||
mail/postfix.1266567445.txt.gz · 上一次變更: 由 wenpei
