Personal tools
You are here: Home Server スパムメール対策
Document Actions

スパムメール対策

by 山野(原人) last modified 2007-05-20 13:56

メールサーバーの拒否ドメイン登録機能を設定。

概要

postfixのドメイン拒否機能を有効にし、スパムメールの受信を拒否するように設定。

送信IPアドレスの拒否設定

/etc/postfix/main.cfに以下の設定を追加。

smtpd_client_restrictions=permit_mynetworks,check_client_access hash:/etc/postfix/reject_list,permit

/etc/postfix/reject_listファイルに、拒否するホスト(IP)を記述。

kyohi_domain REJECT
kityaiya_domain REJECT
iyana_ip REJECT

DBファイル作成。

#/usr/sbin/postmap /etc/postfix/reject_list

ドメインの拒否設定

/etc/postfix/main.cfに以下の設定を追加。

smtpd_sender_restrictions = reject_unknown_sender_domain,reject_non_fqdn_sender hash:/etc/postfix/reject_sender

/etc/postfix/reject_senderファイルに、拒否するドメインを記述。

dame@nanika.co.jp REJECT
dokoka.co.jp REJECT

DBファイル作成。

#/usr/sbin/postmap /etc/postfix/reject_sender

有効化

メールサーバーを再起動し、設定を有効とする。

#/usr/sbin/postfix reload

« November 2009 »
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: