[mew-dist 29552] SSLでのSMTP PLAIN passwordの意味

Hirotaka Honda hrtkhonda at example.com
2013年 1月 23日 (水) 15:47:45 JST


本多と申します。末尾のような環境でMewをメールの送信に使おうとしています。

[質問1] IMAPで読んでいるときに,フォルダ間でメールを移動させると下記のようなMessageが表示されて,以後何かをしようとしても,"Another Process is running."とミニバッファに表示されるようになります。
Connecting to the IMAP server...done
Communicating with the IMAP server...
Refiling 1 message in background...

これは,「[mew-dist 28685] imap」と同じ件のようですが,現在ではどうなっているのでしょうか。

[質問2] C-cC-cで送信しようとすると,(iCloudのsmtpサーバが認証を要求するからだと思いますが),Emacsのミニバッファ(「SMTP PLAIN password (fiduciary at example.com): 」と表示されて,PLAINのままパスワードを入力するように要求されます。

mew-debug t してとった記録の一部は以下のとおりです(パスワードとしては,"test"と入力したうえ,ログにはX文字列で置き換えています。)

そこで質問なのですが,"SSL connected: new session negotiated"との表示があって,SSLにより通信内容が暗号化できているようにみえるのですが,
(A)しかし,「SMTP PLAIN」と尋ねている以上は,そこで入力するパスワードの部分は,例外的に暗号化されないことになるのでしょうか,
(B)それとも,パスワード自体はさらには暗号化されないが通信全体が暗号化されていることによりパスワードも暗号化されているということになるのでしょうか。

[Begin]
2013.01.20 18:00:57 LOG6[86852:4432404480]: SSL connected: new session negotiated
2013.01.20 18:00:57 LOG6[86852:4432404480]: Negotiated TLSv1/SSLv3 ciphersuite: RC4-MD5 (128-bit encryption)
2013.01.20 18:00:57 LOG6[86852:4432404480]: Compression: null, ex

<SSL/TLS: >
pansion: null


<EHLO>
250-st11p00mm-asmtp003.mac.com
250-8BITMIME
250-PIPELINING
250-CHUNKING
250-DSN
250-ENHANCEDSTATUSCODES
250-EXPN
250-HELP
250-XADR
250-XSTA
250-XCIR
250-XGEN
250-XLOOP 189E8AB354EAE294F6CB3AC1D2D47A87
250-AUTH PLAIN LOGIN
250-AUTH=LOGIN PLAIN
250-NO-SOLICITING
250 SIZE 0


<=SEND=>
AUTH PLAIN XXXXXX

<AUTH-PLAIN>
535 5.7.8 Bad username or password (Authentication failed).


<=SEND=>
QUIT

<QUIT>
221 2.3.0 Bye received. Goodbye.


<SSL/TLS: >
2013.01.20 18:01:01 LOG7[86852:4432404480]: SSL alert (read): warning: close no\
tify
2013.01.20 18:01:01 LOG7[86852:4432404480]: SSL closed on SSL_read
2013.01.20 18:01:01 LOG7[86852:4432404480]: Sent socket write shutdown
[End]

iCloudにてIMAPでメールを読む際には,Emacsのモードラインには,[Sec]と表示されていて,かつ「IMAP password (fiduciary at example.com): 」とパスワードの入力を要求されます。

- MacOS 10.8.2
- GNU Emacs 23.3.1 (MacOS 附属のもの)
- Xcode 4.5.2 + Command Line Tools
- stunnel 4.54 on x86_64-apple-darwin12.2.0 platform
Compiled/running with OpenSSL 0.9.8r 8 Feb 2011
Threading:PTHREAD SSL:+ENGINE+OCSP Auth:none Sockets:SELECT+IPv6
./configure --prefix=/Users/username/somewhere --disable-libwrap
- Mew version 6.5
- 接続しようとしているサイト iCloud
http://support.apple.com/kb/HT4864 で提供されている基本情報
IMAP (Incoming Mail Server) information:
• Server name: imap.mail.me.com
• SSL Required: Yes
• Port: 993
• Username: example at example.com (use your @me.com address from your iCloud account)
• Password: Your iCloud password
SMTP (outgoing mail server) information:
• Server name: smtp.mail.me.com
• SSL Required: Yes
• Port: 587
• SMTP Authentication Required: Yes
• Username: example at example.com (use your @me.com address from your iCloud account)
• Password: Your iCloud password
Note: If you receive errors using SSL, try using TLS instead. 
- mew-config-alist in .mew.el
(setq mew-config-alist
      '((default
          (proto    "%")
          (name            "Hirotaka Honda")
          (user    "fiduciary");; *                                             
           (mail-domain       "mac.com")
           (imap-user    "another_address");; *                             
         (imap-server       "imap.mail.me.com")
         (imap-ssl          t)
         (imap-ssl-port     993)
          (ssl-verify-level  0)
         (smtp-server       "smtp.mail.me.com")
         (smtp-port     587)
         (smtp-ssl    t)
         (smtp-ssl-port     587)
          (cc                "another_address at example.com"));; *                       
        (hrtkhonda
         (name            "Hirotaka Honda")
         (user    "hrtkhonda");; *                                              
          (mail-domain       "mac.com")
           (imap-user         "hrtkhonda");; *                                  
	 (imap-server       "imap.mail.me.com")
         (imap-ssl          t)
         (imap-ssl-port     993)
          (ssl-verify-level  0)
         (smtp-server       "smtp.mail.me.com")
	 (smtp-port     587)
         (smtp-ssl    t)
	 (smtp-ssl-port     587)
          (cc               "hrtkhonda at example.com"))));; *                  

-- 
本多広高
〒150-0031東京都渋谷区桜丘町8番11号
パークアクシス渋谷桜丘サウス801
本多法律事務所
Tel 03-3463-6602 Fax 03-3463-6608
http://www.hondalaw.com

ps. コンピュータの技術については,このような種類の疑問をもつのは筋が悪いのかとも思います。






Mew-dist メーリングリストの案内