From: Hiroshi Fujishima <hiroshi.fujishima@gmail.com>
Cc: ding@gnus.org, Samir Saidani <saidani@info.unicaen.fr>
Subject: Re: gnus and smtp auth
Date: Tue, 31 May 2005 18:46:43 +0900 [thread overview]
Message-ID: <7csm03vibg.fsf@nature.tsukuba.ac.jp> (raw)
In-Reply-To: <iluwtpf7o8o.fsf@latte.josefsson.org>
Simon Josefsson <jas@extundo.com> writes:
>>> When I replace the .gnus configuration (from terjeros) with the right
>>> settings, it hangs and there is nothing in smtp debug.
>>
>> I encountered the same trouble, too.
>>
>> In the cause, the behavior of gnutls-cli is of change according to the
>> value of process-connection-type:
>>
>> (let ((process-connection-type t))
>> (start-process "test" (current-buffer) "gnutls-cli" "-s" "-p" "587" "smtp.gmail.com"))
>>
>> Resolving 'smtp.gmail.com'...
>> Connecting to '64.233.185.109:587'...
>>
>> - Simple Client Mode:
>>
>> 220 mx.gmail.com ESMTP d61sm300512wra
>>
>> (let ((process-connection-type nil))
>> (start-process "test" (current-buffer) "gnutls-cli" "-s" "-p" "587" "smtp.gmail.com"))
>>
>> 220 mx.gmail.com ESMTP 33sm823777wra
>>
>> Since default value of starttls-process-connection-type is nil,
>> starttls-connect regexp in starttls-open-stream-gnutls() does not
>> match. So emacs hangs. Gnutls version which I use is:
>
> Does sending mail work if you toggle s-p-c-t? It is not clear what
> the best default for that variable should be.
It did not work regardless of which the value of s-p-c-t was. If
s-p-c-t is nil, it just hangs. If s-p-c-t is nil, emacs say `Sending
failed; SMTP protocol error'. Here is debug infomation:
*Messages*:
Opening STARTTLS connection to `smtp.gmail.com'...done
220 mx.gmail.com ESMTP c12sm932888nzc
250-mx.gmail.com at your service
250-SIZE 20971520
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
502 5.5.1 Unrecognized command c12sm932888nzc
220 2.0.0 Ready to start TLS
smtpmail-send-it: Sending failed; SMTP protocol error
*trace...* buffer:
Process SMTP killed
220 mx.gmail.com ESMTP c12sm932888nzc^M
EHLO alex^M
250-mx.gmail.com at your service^M
250-SIZE 20971520^M
250-8BITMIME^M
250-STARTTLS^M
250 ENHANCEDSTATUSCODES^M
STARTTLS^M
502 5.5.1 Unrecognized command c12sm932888nzc^M
QUIT^M
220 2.0.0 Ready to start TLS^M
Of course executing in shell prompt works.
% gnutls-cli -s -p 587 smtp.gmail.com
Resolving 'smtp.gmail.com'...
Connecting to '64.233.163.109:587'...
- Simple Client Mode:
220 mx.gmail.com ESMTP 6sm76762nzn
EHLO bar.com
250-mx.gmail.com at your service
250-SIZE 20971520
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
STARTTLS
220 2.0.0 Ready to start TLS
^D
*** Starting TLS handshake
- Certificate type: X.509
- Got a certificate list of 1 certificates.
- Certificate[0] info:
# The hostname in the certificate matches 'smtp.gmail.com'.
# valid since: Fri Sep 17 08:35:45 JST 2004
# expires at: Sat Sep 17 08:35:45 JST 2005
# fingerprint: F5:BD:C3:C8:D5:4B:03:EA:57:BB:81:72:46:6B:26:54
# Subject's DN: C=US,ST=California,L=Mountain View,O=Google Inc,CN=smtp.gmail.com
# Issuer's DN: C=ZA,ST=Western Cape,L=Cape Town,O=Thawte Consulting cc,OU=Certification Services Division,CN=Thawte Server CA,EMAIL=server-certs@thawte.com
- Peer's certificate issuer is unknown
- Peer's certificate is NOT trusted
- Version: TLS 1.0
- Key Exchange: RSA
- Cipher: 3DES 168 CBC
- MAC: SHA
- Compression: NULL
QUIT
*** Fatal error: A TLS packet with unexpected length was received.
*** Server has terminated the connection abnormally.
--
Hiroshi Fujishima
next prev parent reply other threads:[~2005-05-31 9:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-24 17:31 Samir Saidani
2005-04-29 8:38 ` Simon Josefsson
2005-04-29 20:59 ` Samir Saidani
2005-04-30 20:23 ` Steinar Bang
2005-05-31 2:28 ` Hiroshi Fujishima
2005-05-31 9:12 ` Simon Josefsson
2005-05-31 9:46 ` Hiroshi Fujishima [this message]
2005-04-26 21:58 Samir Saidani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7csm03vibg.fsf@nature.tsukuba.ac.jp \
--to=hiroshi.fujishima@gmail.com \
--cc=ding@gnus.org \
--cc=saidani@info.unicaen.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).