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 <[email protected]>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 "[email protected]")
> (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
_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to