Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Gnus hang, when sending mail from gmail account with gnutls.
@ 2010-08-15  9:59 filebat Mark
  2010-08-15 11:59 ` filebat Mark
  0 siblings, 1 reply; 4+ messages in thread
From: filebat Mark @ 2010-08-15  9:59 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 4370 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 5453 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Gnus hang, when sending mail from gmail account with gnutls.
  2010-08-15  9:59 Gnus hang, when sending mail from gmail account with gnutls filebat Mark
@ 2010-08-15 11:59 ` filebat Mark
  2010-08-15 12:11   ` Richard Riley
  0 siblings, 1 reply; 4+ messages in thread
From: filebat Mark @ 2010-08-15 11:59 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 4911 bytes --]

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 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

[-- Attachment #1.2: Type: text/html, Size: 6334 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Gnus hang, when sending mail from gmail account with gnutls.
  2010-08-15 11:59 ` filebat Mark
@ 2010-08-15 12:11   ` Richard Riley
  2010-08-15 13:10     ` filebat Mark
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Riley @ 2010-08-15 12:11 UTC (permalink / raw)
  To: info-gnus-english


filebat Mark <filebat.mark@gmail.com> writes:

> 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 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))))

As a workaround ...

There was a thread earlier in the year about this. The same issue crops
up a lot (under Linux AND Windows btw) and TLS confuses a lot of people
and/or seems very creaky. - I know it did me ;) The thread earlier in
the year posted a solution using msmtp I *think* :--

http://www.mail-archive.com/info-gnus-english@gnu.org/msg08606.html

Hopefully this might work for you.

regards

r.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Gnus hang, when sending mail from gmail account with gnutls.
  2010-08-15 12:11   ` Richard Riley
@ 2010-08-15 13:10     ` filebat Mark
  0 siblings, 0 replies; 4+ messages in thread
From: filebat Mark @ 2010-08-15 13:10 UTC (permalink / raw)
  To: Richard Riley; +Cc: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 1924 bytes --]

Thanks a lot, Richard.

I have tried msmtp, it works well.

Not sure whether this is known issue for emacs in windows.

Regards,
Denny

On Sun, Aug 15, 2010 at 8:11 PM, Richard Riley <rileyrg@gmail.com> wrote:

>
> filebat Mark <filebat.mark@gmail.com> writes:
>
> > 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 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))))
>
> As a workaround ...
>
> There was a thread earlier in the year about this. The same issue crops
> up a lot (under Linux AND Windows btw) and TLS confuses a lot of people
> and/or seems very creaky. - I know it did me ;) The thread earlier in
> the year posted a solution using msmtp I *think* :--
>
> http://www.mail-archive.com/info-gnus-english@gnu.org/msg08606.html
>
> Hopefully this might work for you.
>
> regards
>
> r.
>
>
>
> _______________________________________________
> info-gnus-english mailing list
> info-gnus-english@gnu.org
> http://lists.gnu.org/mailman/listinfo/info-gnus-english
>



-- 
Thanks & Regards

Denny Zhang

[-- Attachment #1.2: Type: text/html, Size: 2870 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-15 13:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-15  9:59 Gnus hang, when sending mail from gmail account with gnutls filebat Mark
2010-08-15 11:59 ` filebat Mark
2010-08-15 12:11   ` Richard Riley
2010-08-15 13:10     ` filebat Mark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).