telnet(openssl s_client)ã§Gmailéã£ã¦ã¿ãã
Gmailã®SMTPãµã¼ãã®åºæ¬çãªæ
å ±ã¯ããã«è¼ã£ã¦ã
http://mail.google.com/support/bin/answer.py?answer=78799
ãµã¼ã: smtp.gmail.com
ãã¼ã: 465 or 587
ã¢ã«ã¦ã³ã: xxxxxxxx@gmail.com
ãã¹ã¯ã¼ã: yyyyyyyy(Gmailã®ãã¹ã¯ã¼ã)
Use STARTTLS
STARTTLSã使ç¨ããã®ã§ãµã¼ãã¸ã®æ¥ç¶ã¯
openssl s_clientã使ç¨ãã¾ãã
$ openssl s_client -starttls smtp -crlf -connect smtp.gmail.com:587
æ¥ç¶ã§ãããehlo
ehlo localhost 250-AUTH LOGIN PLAIN XOAUTH
次ã¯SMTP-AUTHèªè¨¼ãè¡ãªãã¾ãã
èªè¨¼æ¹å¼ã¯PLAINã§ãã£ã¦ã¿ã¾ãã
AUTH PLAINã§ã¯
ã¢ã«ã¦ã³ã\0ã¢ã«ã¦ã³ã\0ãã¹ã¯ã¼ã
ãbase64ã¨ã³ã³ã¼ãããæååã使ç¨ãã¾ãã
ã¨ããã§ãã«æåã®æ±ããããããã£ã¦ãªãã§ããEmacsã®base64-encode-stringé¢æ°ä½¿ã£ããã ãã©ã\0ã§ã¯ã ãã§ãå¤ããã«\000ã§ãã£ãããã¾ããã£ãã
auth plain base64ã¨ã³ã³ã¼ãããæåå 235 2.7.0 Accepted
Acceptedã帰ã£ã¦ããããã¨ã¯ããããæãã§
mail from: <[email protected]> 250 2.1.0 OK rcpt to: <[email protected]>; 250 2.1.5 OK data 354 Go ahead From: me<[email protected]>; To: someone<[email protected]>; Subject: hoge foobar . 250 2.0.0 OK
以ä¸ãã¡ã¼ã«ãéããããã§ããã