Postfix OP25B対策

この章を始める前に下記の設定が必要です
「Postfix Dovecot インストール」
プロバイダの認証方法確認
[root@freebsd ~]# telnet プロバイダのSMTPサーバー 25
Trying xxx.xxx.xxx.xxx...
Connected to SMTPサーバー (xxx.xxx.xxx.xxx).
Escape character is '^]'.
220 SMTPサーバー ESMTP
ehlo localhost
250-SMTPサーバー
250-AUTH LOGIN PLAIN ←認証方法を確認
250-PIPELINING
250 8BITMIME
quit
221 SMTPサーバー
Connection closed by foreign host.
ヒント
プロバイダがOP25Bを実施している場合のみ設定してください。(固定IPの場合は不要) 認証方法には、LOGIN PLAIN の他に DIGEST-MD5 CRAM-MD5 などがあります。
PostfixのOP25B ( Outbound Port 25 Blocking ) 対応
[root@freebsd ~]# vi /usr/local/etc/postfix/main.cf
#relayhost = [an.ip.add.ress]
↓
relayhost = [プロバイダのSMTPサーバー]:587 ←コメント解除&変更

↓最終行に下記を記入
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/usr/local/etc/postfix/ispauth
smtp_sasl_security_options = noanonymous
smtp_sasl_mechanism_filter = login, plain
[root@freebsd ~]# vi /usr/local/etc/postfix/ispauth
↓下記を記入
[プロバイダのSMTPサーバー]:587 プロバイダのユーザーID:プロバイダのパスワード
[root@freebsd ~]# chmod 640 /usr/local/etc/postfix/ispauth [root@freebsd ~]# postmap /usr/local/etc/postfix/ispauth [root@freebsd ~]# /usr/local/etc/rc.d/postfix restart
ヒント
プロバイダのSMTPサーバーとユーザーID、パスワードはプロバイダにお問い合わせください。
Home PageTop