[mew-dist 29462] Re: SSL SMTP for gmail

Ryo Furue <[email protected]> Tue, 13 Mar 2012 21:34:27 -1000 (HST)
Newsgroups gmane.mail.mew.general.japanese
Message-ID <[email protected]>

  



|    stunnel  libwrap 
|  libwrap 

 libwrap 

  $ ldd /usr/bin/stunnel4
  [. . .]
  libwrap.so.0 => /lib/i386-linux-gnu/libwrap.so.0 [. . .]
  [. . .]

ftp://ftp.stunnel.org/stunnel/stunnel-4.52.tar.gz 


  $ ./configure --disable-libwrap --prefix=/usr/local
  [. . .]
  $ make
  $ sudo make install

libwrap   
ldd /usr/local/bin/stunnel 

~/.mew.el  mew-prog-ssl  "/usr/local/bin/stunnel" 
(*) 
(;_;)

|   libwrap 
| mew  stunnel  /tmp  mew 
| ps -axwww | grep stunnel 
|  connect= 
| 
|
| 	accept=127.0.0.1:11788
|
|    telnet  google 
| 

 

   > 1. emacs 
   > 2. C-x m C-c C-c 
   > 3. "Creating an SSL/TSL connection . . ."  

   >    emacs 



   $ ps -ef | egrep stunn
   [. . .] /usr/local/bin/stunnel /tmp/furue12285Sdp/mew12285fnv
   $

 telnet 

   $ cat /tmp/furue12285Sdp/mew12285fnv
   [. . .]
   accept=127.0.0.1:9164
   connect=smtp.gmail.com:465
   $ telnet 127.0.0.1 9164
   Trying 127.0.0.1...
   Connected to 127.0.0.1.
   Escape character is '^]'.
   220 mx.google.com ESMTP rd7sm11498472igb.14
   EHLO foobar.example.com    <-- 
   250-mx.google.com at your service, [128.171.156.62]
   250-SIZE 35882577
   250-8BITMIME
   250-AUTH LOGIN PLAIN XOAUTH
   250 ENHANCEDSTATUSCODES
   [. . .]
   QUIT <-- 

 Google  SMTP
authentication
"EHLO" stunnel 




 
----------------------------
(*) ~/.mew.el 

(setq mew-use-cached-passwd t) ; default cache time is 20 minutes.
(setq mew-passwd-timer-unit 30) ; minutes

(setq mew-mail-domain "hawaii.edu")

(setq mew-smtp-server "smtp.gmail.com") ; "mail.hawaii.edu"
(setq mew-smtp-user "[email protected]")
(setq mew-smtp-ssl    t) ;; why does mail.hawaii.edu work without thi 
s flag?
(setq mew-smtp-ssl-port "465")
;(setq mew-use-smtp-auth nil);; ignore the server's request for authe 
ntication.
;(setq mew-smtp-auth-list '("PLAIN" "LOGIN" "CRAM-MD5"))
;(setq mew-ssl-verify-level 0)
;(setq mew-ssl-verify-version 0)
(setq mew-prog-ssl "/usr/local/bin/stunnel")

|
|
|
| > []
| > 1. emacs 
| > 2. C-x m C-c C-c 
| > 3. "Creating an SSL/TSL connection . . ."  

| >    emacs 
| > 4. C-g 
| > 5. M-x mew  mew +queue  

| >    
| > 6.  C-c C-c 
| > 7.  "SMTP PLAIN password (@hawaii.edu): 
"
| >    
| > 8.  "Sending in background...done"  

| >    
| >
| > 3"ps -ef"  /usr/bin/stunnel4  

| > 
| >
| > []
|
|   libwrap  stunnel 
| f(^^;;
|
| > []
| > Debian GNU/Linux (testing)
| > mew  1:6.3-3
| > stunnel4  3:4.52-1
| > (Debian )
|
|    stunnel  ldd 
|
| 
| ---
| Contact to me.
| takachan[at]running-dog.net     http://www.running-dog.net/
| takachan[at]icmpv6.org          http://icmpv6.org/
|