Postfixの基本設定
SMTP、POP3のベーシック設定。
- Postfixの設定
/etc/postfix/main.cfを編集します。- 次の項目を変更します。:
myhostname = papasan.org mydomain = papasan.org mydestination = $myhostname, localhost.$mydomain, $mydomain mynetworks = 192.168.0.0/24 127.0.0.0/8 allow_percent_hach = yes
- 以下の項目を設定ファイルの最後に追記します。:
smtpd_helo_required = yes swap_bangpath = yes disable_vrfy_command = yes smtpd_client_restrictions = permit_mynetworks, reject_unknown_client, permit smtpd_recipient_restrictions = permit_mynetworks, reject_sender_login_mismatch, check_relay_domains smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname, reject_unknown_client, permit smtpd_sender_restrictions = reject_unknown_sender_domain, reject_sender_login_mismatch smtpd_etrn_restrictions = permit_mynetworks, reject_invalid_hostname
- Postfixの再起動:
# /etc/rc.d/init.d/postfix restart
- 次の項目を変更します。:
- 不正中継の拒否テスト
NETWORK ABUSE CLEARINGHOUSE にてテストを行います。 17項目に及ぶテストがありますが、最後に次のように表示されれば取り敢えずは合格でしょう。:
Relay test result All tests performed, no relays accepted.
- Pop3のサービスを有効にする。
/etc/inetd.confの「Pop and imap mail services et al」の部分でpop3がコメントアウトされていれば有効にする。:# vi /etc/inetd.conf pop-3 stream tcp nowait root /usr/sbin/tcpd in.qpopper # /etc/rc.d/init.d/inet restart