smtpd_helo_required = yes
disable_vrfy_command = yes
strict_rfc821_envelopes = yes
allow_percent_hack = yes
swap_bangpath = yes
allow_untrusted_routing = no
smtpd_client_restrictions = permit_mynetworks,
reject_unknown_client, permit
smtpd_helo_restrictions = permit_mynetworks,
reject_invalid_hostname, reject_unknown_client,
permit
smtpd_recipient_restrictions = permit_mynetworks,
reject_sender_login_mismatch, check_relay_domains
smtpd_sender_restrictions = reject_unknown_sender_domain,
reject_sender_login_mismatch
smtpd_etrn_restrictions = permit_mynetworks,
reject_invalid_hostname
図3−1 main.cf追加内容 |
- Postfixの設定ファイル/etc/postfix/main.cfの下部に図3−1の不正中継拒否設定を追加する。
- 保存してPostfixを再起動する。
- 不正中継拒否のテストはThird Party Relay Checkで実施可能。19種類のテストすべてパスすればOK。
-
|