From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/14055 Path: news.gmane.org!not-for-mail From: filebat Mark Newsgroups: gmane.emacs.gnus.user Subject: Re: Gnus hang, when sending mail from gmail account with gnutls. Date: Sun, 15 Aug 2010 19:59:10 +0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1521001945==" X-Trace: dough.gmane.org 1281873566 10835 80.91.229.12 (15 Aug 2010 11:59:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 15 Aug 2010 11:59:26 +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 13:59:24 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 1Okbry-0001AL-58 for gegu-info-gnus-english@m.gmane.org; Sun, 15 Aug 2010 13:59:18 +0200 Original-Received: from localhost ([127.0.0.1]:45945 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Okbrx-0007wG-NY for gegu-info-gnus-english@m.gmane.org; Sun, 15 Aug 2010 07:59:17 -0400 Original-Received: from [140.186.70.92] (port=36061 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Okbrt-0007vu-Mx for info-gnus-english@gnu.org; Sun, 15 Aug 2010 07:59:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Okbrs-0004yd-52 for info-gnus-english@gnu.org; Sun, 15 Aug 2010 07:59:13 -0400 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:49498) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Okbrr-0004yN-Tt for info-gnus-english@gnu.org; Sun, 15 Aug 2010 07:59:12 -0400 Original-Received: by wwi14 with SMTP id 14so3863165wwi.30 for ; Sun, 15 Aug 2010 04:59:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=0aetAhlaQSitdX7TgBMs/rnVF21LwlKL8dOhZAscmME=; b=N19LEmIG8KHU47ZrhUOKk2KMNw1WXKg5tuc/T6VT8pxs9W/7oQQpbAwkx1s/aSAODf zppRym+h5fhGVV21ove5IGjWk2Vnb3DhY0dMyDTJwyqHyOMQ2wOGUnhOVOAujYq2JzOW grh7VcS9xINbPQOeGb1LbFuKjSdfRqWv3kGoU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=yGBYbApBcoDG4+1Fsr8bFVIf6xRxqYHTWll8CfRNj/myBJX7dzplDTIZAduBxDp0Nh AnW7vLxsg7Wd5H8mi5v2eH01IcXCB8ZfHg/rqT7TEbpltWRVYceyG8VT98W5fHcv4JN0 fgfttjrK3WLOVczaf/uLsjBdTSIGgnop7XjBY= Original-Received: by 10.227.42.25 with SMTP id q25mr3470981wbe.8.1281873550808; Sun, 15 Aug 2010 04:59:10 -0700 (PDT) Original-Received: by 10.216.190.203 with HTTP; Sun, 15 Aug 2010 04:59:10 -0700 (PDT) In-Reply-To: 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:14055 Archived-At: --===============1521001945== Content-Type: multipart/alternative; boundary=0022159750faa49550048ddb71ed --0022159750faa49550048ddb71ed Content-Type: text/plain; charset=ISO-8859-1 One more confusing: - Since I have explicitly configured to use gnutls by (setq starttls-use-gnutls t), why we have STARTTLS output in the buffer of "*trace of SMTP seesion". Regards, Denny On Sun, Aug 15, 2010 at 5:59 PM, filebat Mark wrote: > 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 > > -- Thanks & Regards Denny Zhang --0022159750faa49550048ddb71ed Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable One more confusing:
- Since I have explicitly configured to use gnutls = by (setq starttls-use-gnutls t), why we have STARTTLS output in the buffer = of "*trace of SMTP seesion".

Regards,
Denny


On Sun, Aug 15, 2010 at 5:59 PM, filebat Mark <filebat.mark@= gmail.com> wrote:
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 ES= MTP 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 --------------------------
(requir= e 'gnus)
(setq user-full-name "filebat")
(setq user-mail-address "= filebat.mark@gm= ail.com")
(setq gnus-select-method
=A0=A0=A0=A0=A0 '(nni= map "gmail"
=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 ni= l))
=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<= /a>"
=A0=A0=A0=A0=A0 smtpmail-smtp-server "
smtp.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.goog= le.com'...
Connecting to '66.249.89.104:443'...
Check= ing 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... 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




--
Thanks & Reg= ards

Denny Zhang

--0022159750faa49550048ddb71ed-- --===============1521001945== 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 --===============1521001945==--