From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/14054 Path: news.gmane.org!not-for-mail From: filebat Mark Newsgroups: gmane.emacs.gnus.user Subject: Gnus hang, when sending mail from gmail account with gnutls. Date: Sun, 15 Aug 2010 17:59:57 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1066342021==" X-Trace: dough.gmane.org 1281866481 21917 80.91.229.12 (15 Aug 2010 10:01:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 15 Aug 2010 10:01:21 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun Aug 15 12:01:20 2010 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oka1h-0004NF-Aw for gegu-info-gnus-english@m.gmane.org; Sun, 15 Aug 2010 12:01:15 +0200 Original-Received: from localhost ([127.0.0.1]:40113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oka1c-0003ze-S4 for gegu-info-gnus-english@m.gmane.org; Sun, 15 Aug 2010 06:01:08 -0400 Original-Received: from [140.186.70.92] (port=60946 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oka1W-0003yd-3c for info-gnus-english@gnu.org; Sun, 15 Aug 2010 06:01:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oka18-0007kb-JB for info-gnus-english@gnu.org; Sun, 15 Aug 2010 06:00:39 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:34740) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oka18-0007fY-5k for info-gnus-english@gnu.org; Sun, 15 Aug 2010 06:00:38 -0400 Original-Received: by wyg36 with SMTP id 36so5000267wyg.0 for ; Sun, 15 Aug 2010 02:59:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=PHwmemmtsCwQMBICKcbGxi3m9adtxiOEAfXmhn6lUww=; b=P5cVu2yo6EZVTb4g6fBPuDSKdfikaUSxGmidmMtPE2JqNVcj4X7vft1qlWDHA6Gg6N Krg3HhfVjOalXS9pKmb/E2EkyVweb4WgyAOCRPSqN08JMfp3gUnBZ6fTmYNLqjbFBLGa nM+soMVB0aB/QfjL/DDNHXWdPh2+IQXYYjjgc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=wUIp5V2vn4SY6ZGB2oXf1vtz9HHOKPiJ2O9GBGZEki/gzLFMRmovZXsR5joyg7Cdu1 TWD1vtbla8biUjaSNAC0xenY1/ClDk6a/irmSCqC2hMRtsuEcatmAXbqMMtnwchDPjqu EzdDik/Vp1o6QBIFTUHnl+snBe5bHAPTtXXKI= Original-Received: by 10.216.12.139 with SMTP id 11mr3176212wez.63.1281866397353; Sun, 15 Aug 2010 02:59:57 -0700 (PDT) Original-Received: by 10.216.190.203 with HTTP; Sun, 15 Aug 2010 02:59:57 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:14054 Archived-At: --===============1066342021== Content-Type: multipart/alternative; boundary=0016364c7ad74387db048dd9c7b2 --0016364c7ad74387db048dd9c7b2 Content-Type: text/plain; charset=ISO-8859-1 Hi gnusers I can receive mails of gmail by imap. However, after struggling for several days, I still fail to send mail in gnus. Would you please help to root cause the problem? My environment: cygwin + ntemacs 23. Below is my gnus related configuration, and ~/.authinfo is correct. And it hangs with the output of "220 2.0.0 Ready to start TLS", when I try to invoke message-send in *Message* mode. No problem is found, when manually invoke "gnutls-cli-debug.exe www.google.com". It seems hang at smtpmail.el::smtpmail-via-smtp line 672 (if (or (null (car (setq greeting (smtpmail-read-response process)))) ;; -------------------------- *trace of SMTP session to smtp.gmail.com-------------------------- 220 mx.google.com ESMTP v13sm4048733wfv.17 EHLO CNRDZHANGD1L1C 250-mx.google.com at your service, [222.70.51.13] 250-SIZE 35651584 250-8BITMIME 250-STARTTLS 250 ENHANCEDSTATUSCODES STARTTLS 220 2.0.0 Ready to start TLS QUIT ;; -------------------------- gnus configuration -------------------------- (require 'gnus) (setq user-full-name "filebat") (setq user-mail-address "filebat.mark@gmail.com") (setq gnus-select-method '(nnimap "gmail" (nnimap-address "imap.gmail.com") (nnimap-server-port 993) (nnimap-stream ssl)) ) (setq gnus-startup-file "~/.newsrc" gnus-default-directory "~/Mail/" gnus-home-directory "~/Mail/" gnus-article-save-directory "~/Mail/save/" gnus-kill-files-directory "~/Mail/trash/" gnus-agent-directory "~/Mail/agent/" gnus-cache-directory "~/Mail/cache/" mail-source-directory "~/Mail/incoming/" nnmail-message-id-cache-file "~/Mail/.nnmail-cache" nnml-newsgroups-file "~/Mail/newsgroup" message-directory "~/Mail/" message-auto-save-directory "~/Mail/drafts/") (setq gnus-save-newsrc-file nil gnus-read-newsrc-file nil gnus-use-dribble-file nil gnus-save-killed-list nil) (setq gnus-interactive-exit nil) ;; No confirmation when exiting Gnus. (setq starttls-use-gnutls t) (setq send-mail-function 'smtpmail-send-it message-send-mail-function 'smtpmail-send-it smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil)) smtpmail-auth-credentials (expand-file-name "~/.authinfo") smtpmail-default-smtp-server "smtp.gmail.com" smtpmail-smtp-server "smtp.gmail.com" smtpmail-smtp-service 587 smtpmail-debug-info t) (require 'smtpmail) ;; -------------------------- gnutls-cli-debug.exe -------------------------- $ gnutls-cli-debug.exe www.google.com Resolving 'www.google.com'... Connecting to '66.249.89.104:443'... Checking for TLS 1.1 support... no Checking fallback from TLS 1.1 to... TLS 1.0 Checking for TLS 1.0 support... yes Checking for SSL 3.0 support... yes Checking for HTTPS server name... not checked Checking for version rollback bug in RSA PMS... no Checking for version rollback bug in Client Hello... no Checking whether we need to disable TLS 1.0... N/A Checking whether the server ignores the RSA PMS version... no Checking whether the server can accept Hello Extensions... yes Checking whether the server can accept cipher suites not in SSL 3.0 spec... yes Checking whether the server can accept a bogus TLS record version in the client hello... n o Checking for certificate information... N/A Checking for trusted CAs... N/A Checking whether the server understands TLS closure alerts... partially Checking whether the server supports session resumption... yes Checking for export-grade ciphersuite support... no Checking RSA-export ciphersuite info... N/A Checking for anonymous authentication support... no Checking anonymous Diffie-Hellman group info... N/A Checking for ephemeral Diffie-Hellman support... no Checking ephemeral Diffie-Hellman group info... N/A Checking for AES cipher support (TLS extension)... yes Checking for 3DES cipher support... yes Checking for ARCFOUR 128 cipher support... yes Checking for ARCFOUR 40 cipher support... no Checking for MD5 MAC support... yes Checking for SHA1 MAC support... yes Checking for LZO compression support (GnuTLS extension)... no Checking for max record size (TLS extension)... no Checking for SRP authentication support (TLS extension)... yes Checking for OpenPGP authentication support (TLS extension)... no -- Thanks & Regards Denny Zhang --0016364c7ad74387db048dd9c7b2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi gnusers

I can receive mails of gmail by imap. However, after stru= ggling for several days, I still fail to send mail in gnus.
Would you pl= ease help to root cause the problem? My environment: cygwin + ntemacs 23.
Below is my gnus related configuration, and ~/.authinfo is correct.
=
And it hangs with the output of "220 2.0.0 Ready to start TLS"= ;, when I try to invoke message-send in *Message* mode.
No problem is fo= und, when manually invoke "gnutls-cli-debug.exe www.google.com".

It seems hang at smtpmail.el::smtpmail-via-smtp
line 672 =A0=A0 =A0= =A0=A0 (if (or (null (car (setq greeting (smtpmail-read-response process)))= )

;; -------------------------- *trace of SMTP session to smtp.gmail.com --------------------------
220 mx.google.com ESMTP v13sm4048733wf= v.17

EHLO CNRDZHANGD1L1C

250-mx.google.com at your service, [222.70.51.13]

250-SIZE 3565= 1584

250-8BITMIME

250-STARTTLS

250 ENHANCEDSTATUSCODES

= STARTTLS

220 2.0.0 Ready to start TLS

QUIT

;; --------= ------------------ gnus configuration --------------------------
(requir= e 'gnus)
(setq user-full-name "filebat")
(setq user-mail-address "= filebat.mark@gmail.com")=
(setq gnus-select-method
=A0=A0=A0=A0=A0 '(nnimap "gmail&qu= ot;
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (nnimap-address "imap.gmail.com")
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (nnimap-server-port 993)
=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (nnimap-stream ssl))
=A0=A0=A0= =A0=A0 )
(setq gnus-startup-file "~/.newsrc"
=A0=A0=A0=A0= =A0 gnus-default-directory "~/Mail/"
=A0=A0=A0=A0=A0 gnus-home= -directory "~/Mail/"
=A0=A0=A0=A0=A0 gnus-article-save-directory "~/Mail/save/"
=A0= =A0=A0=A0=A0 gnus-kill-files-directory "~/Mail/trash/"
=A0=A0= =A0=A0=A0 gnus-agent-directory "~/Mail/agent/"
=A0=A0=A0=A0=A0= gnus-cache-directory "~/Mail/cache/"
=A0=A0=A0=A0=A0 mail-source-directory "~/Mail/incoming/"
=A0= =A0=A0=A0=A0 nnmail-message-id-cache-file "~/Mail/.nnmail-cache"<= br>=A0=A0=A0=A0=A0 nnml-newsgroups-file "~/Mail/newsgroup"
=A0= =A0=A0=A0=A0 message-directory "~/Mail/"
=A0=A0=A0=A0=A0 message-auto-save-directory "~/Mail/drafts/")
=
(setq gnus-save-newsrc-file nil
=A0=A0=A0=A0=A0 gnus-read-newsrc-fil= e nil
=A0=A0=A0=A0=A0 gnus-use-dribble-file nil
=A0=A0=A0=A0=A0 gnus-= save-killed-list nil)

(setq gnus-interactive-exit nil) ;; No confirm= ation when exiting Gnus.

(setq starttls-use-gnutls t)
(setq send-mail-function 'smtpmail-= send-it
=A0=A0=A0=A0=A0 message-send-mail-function 'smtpmail-send-it=
=A0=A0=A0=A0=A0 smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
=A0=A0=A0=A0=A0 smtpmail-auth-credentials
=A0=A0=A0=A0=A0 (expand-file-n= ame "~/.authinfo")
=A0=A0=A0=A0=A0 smtpmail-default-smtp-serve= r "smtp.gmail.com"
=A0= =A0=A0=A0=A0 smtpmail-smtp-server "s= mtp.gmail.com"
=A0=A0=A0=A0=A0 smtpmail-smtp-service 587
=A0=A0=A0=A0=A0 smtpmail-debug= -info t)
(require 'smtpmail)
;; -------------------------- gnutls= -cli-debug.exe --------------------------
$ gnutls-cli-debug.exe www.google.com
Resolving 'www.google.com'...=
Connecting to '66.249.89.104:443'...
Checking for TLS 1.1 su= pport... no
Checking fallback from TLS 1.1 to... TLS 1.0
Checking for= TLS 1.0 support... yes
Checking for SSL 3.0 support... yes
Checking for HTTPS server name... no= t checked
Checking for version rollback bug in RSA PMS... no
Checking= for version rollback bug in Client Hello... no
Checking whether we need= to disable TLS 1.0... N/A
Checking whether the server ignores the RSA PMS version... no
Checking w= hether the server can accept Hello Extensions... yes
Checking whether th= e server can accept cipher suites not in SSL 3.0 spec... yes
Checking wh= ether the server can accept a bogus TLS record version in the client hello.= .. n
o
Checking for certificate information... N/A
Checking for trusted CA= s... N/A
Checking whether the server understands TLS closure alerts... p= artially
Checking whether the server supports session resumption... yes<= br> Checking for export-grade ciphersuite support... no
Checking RSA-export = ciphersuite info... N/A
Checking for anonymous authentication support...= no
Checking anonymous Diffie-Hellman group info... N/A
Checking for = ephemeral Diffie-Hellman support... no
Checking ephemeral Diffie-Hellman group info... N/A
Checking for AES cip= her support (TLS extension)... yes
Checking for 3DES cipher support... y= es
Checking for ARCFOUR 128 cipher support... yes
Checking for ARCFOU= R 40 cipher support... no
Checking for MD5 MAC support... yes
Checking for SHA1 MAC support... yes=
Checking for LZO compression support (GnuTLS extension)... no
Checki= ng for max record size (TLS extension)... no
Checking for SRP authentica= tion support (TLS extension)... yes
Checking for OpenPGP authentication support (TLS extension)... no


--
Thanks & Regards

Denny Zhang

--0016364c7ad74387db048dd9c7b2-- --===============1066342021== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english --===============1066342021==--