タイトル | : Re: 感謝です。最後に確認です。 |
記事No | : 6165 |
投稿日 | : 2006/07/09(Sun) 09:58 |
投稿者 | : たこ |
Jul 9 09:07:50 hogea postfix/anvil[3973]: statistics: max connection rate 1/60s for (smtp:220.106.62.74) at Jul 9 09:04:29Jul 9 09:07:50 hogea postfix/anvil[3973]: statistics: max connection count 1 for (smtp:220.106.62.74) at Jul 9 09:04:29 Jul 9 09:07:50 hogea postfix/anvil[3973]: statistics: max cache size 1 at Jul 9 09:04:29 Jul 9 09:08:58 hogea dovecot: pop3-login: Login: user=<test>, method=PLAIN, rip=::ffff:220.106.62.74, lip=::ffff:192.168.11.3, TLS Jul 9 09:08:58 hogea dovecot: POP3(test): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0 Jul 9 09:09:19 hogea postfix/smtpd[4071]: warning: 220.106.62.74: address not listed for hostname hogea.test.net Jul 9 09:09:19 hogea postfix/smtpd[4071]: connect from unknown[220.106.62.74] Jul 9 09:09:19 hogea postfix/smtpd[4071]: setting up TLS connection from unknown[220.106.62.74] Jul 9 09:09:19 hogea postfix/smtpd[4071]: TLS connection established from unknown[220.106.62.74]: TLSv1 with cipher RC4-MD5 (128/128 bits) Jul 9 09:09:19 hogea postfix/smtpd[4071]: EDE732B8B41: client=unknown[220.106.62.74], sasl_method=LOGIN, sasl_username=testJul 9 09:09:20 hogea postfix/cleanup[4075]: EDE732B8B41: message-id=<000b01c6a2eb$f938c7a0$060ba8c0@hogeap4> Jul 9 09:09:20 hogea postfix/qmgr[3455]: EDE732B8B41: from=<test@hogea.test.net>, size=1341, nrcpt=1 (queue active) Jul 9 09:09:20 hogea postfix/smtpd[4071]: disconnect from unknown[220.106.62.74] Jul 9 09:09:21 hogea postfix/smtpd[4079]: connect from hogea.test.net[127.0.0.1] Jul 9 09:09:21 hogea postfix/smtpd[4079]: 077452B8B81: client=hogea.test.net[127.0.0.1] Jul 9 09:09:21 hogea postfix/cleanup[4075]: 077452B8B81: message-id=<000b01c6a2eb$f938c7a0$060ba8c0@hogeap4> Jul 9 09:09:21 hogea postfix/qmgr[3455]: 077452B8B81: from=<test@hogea.test.net>, size=1789, nrcpt=1 (queue active) Jul 9 09:09:21 hogea amavis[3510]: (03510-02) Passed CLEAN, [220.106.62.74] [220.106.62.74] <test@hogea.test.net> -> <hogeajp@yahoo.co.jp>, Message-ID: <000b01c6a2eb$f938c7a0$060ba8c0@hogeap4>, mail_id: tJSZMN9numOf, Hits: -0.96, 1030 ms Jul 9 09:09:21 hogea postfix/smtpd[4079]: disconnect from hogea.test.net[127.0.0.1] Jul 9 09:09:21 hogea postfix/smtp[4076]: EDE732B8B41: to=<hogeajp@yahoo.co.jp>, relay=127.0.0.1[127.0.0.1], delay=2, status=sent (250 2.6.0 Ok, id=03510-02, from MTA([127.0.0.1]:10125): 250 Ok: queued as 077452B8B81) Jul 9 09:09:21 hogea postfix/qmgr[3455]: EDE732B8B41: removed Jul 9 09:09:21 hogea postfix/smtp[4080]: 077452B8B81: to=<hogeajp@yahoo.co.jp>, relay=mx.sannet.ne.jp[134.180.49.101], delay=0, status=sent (250 Ok: queued as 6BABA26A0) Jul 9 09:09:21 hogea postfix/qmgr[3455]: 077452B8B81: removed
いろいろ教えていただきありがとうございます。感謝です。 なんとなく考えていたように動き始めました。送信側にもTLSがかかったようです。
>前レスのとおり、Postfx(SMTP)にはクライアントや他のSMTPサーバからメールを受け取るサーバとしての側面と、受け取ったメールを他の SMTPサーバに配送するときのクライアント(このときは、Postfixはある意味でOutlookと全く同じ動作をする)としての側面があることを理解してください。
自分の考えていることを伝えるのが下手なのと理解力の不足で申し訳ないです。 上記の意味は言い方を変えると下のような事ですよね? 例えばクライアントがOEで自宅メールサーバーにメールを送信依頼してくる。 その時にまずクライアント→メールサーバー間で認証を行う。(smtpd_) このメールサーバーが接続されている回線は動的IPでありDNSを利用していてかつ ISPではOutbound port 25 Blocking対策をしている。 そこで自宅メールサーバーはmain.cfでreayhost=ISPメールサーバーを指定する。 しかし単にrelayhostで転送しただけでは、送信できないので(smtp_) 自宅メールサーバーは587ポートを使ってISPメールサーバーとの間で認証を取り メールをISPメールサーバーを通して送信してもらう。
main.cfに追加の設定
#SMTP Authを有効にする。 smtpd_sasl_auth_enable = yes
#OutLookなどのためにLOGIN認証を使用する broken_sasl_auth_clients = yes
#リレ-制限の設定 smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination content_filter = smtp-amavis:[127.0.0.1]:10024
#TLSの設定 smtpd_use_tls = yes smtpd_tls_cert_file = /etc/postfix/certs/server.pem smtpd_tls_key_file = /etc/postfix/certs/server.key smtpd_tls_session_cache_database = btree:/etc/postfix/smtpd_scache smtpd_tls_loglevel = 1
#ISP SMTP Authを有効にする。 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/saslpass smtp_sasl_type = cyrus
こんな感じですか?(わかりにくくてすいません。)
|