![]() |
この章を始める前に下記の設定が必要です 「Postfix Dovecot インストール」
[root@ns1 ~]# 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 などがあります。
[root@ns1 ~]# vi /etc/postfix/main.cf[root@ns1 ~]# vi /etc/postfix/ispauth#relayhost = [an.ip.add.ress] ↓ relayhost = [プロバイダのSMTPサーバー]:587 ←コメント解除&変更 ↓最終行に下記を記入 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/ispauth smtp_sasl_security_options = noanonymous smtp_sasl_mechanism_filter = login, plain[root@ns1 ~]# chmod 640 /etc/postfix/ispauth [root@ns1 ~]# postmap /etc/postfix/ispauth [root@ns1 ~]# /etc/rc.d/init.d/postfix reload↓下記を記入 [プロバイダのSMTPサーバー]:587 プロバイダのユーザーID:プロバイダのパスワード
※黄色い部分は環境に合わせて変更してください。
ヒント プロバイダのSMTPサーバーとユーザーID、パスワードはプロバイダにお問い合わせください。
![]() |
![]() |
Last updated 2010-08-25 |