From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60382 Path: news.gmane.org!not-for-mail From: Hiroshi Fujishima Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus and smtp auth Date: Tue, 31 May 2005 18:46:43 +0900 Message-ID: <7csm03vibg.fsf@nature.tsukuba.ac.jp> References: <87mzrokrnl.fsf@info.unicaen.fr> <7c7jhgxh63.fsf@nature.tsukuba.ac.jp> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1117532764 27716 80.91.229.2 (31 May 2005 09:46:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 May 2005 09:46:04 +0000 (UTC) Cc: ding@gnus.org, Samir Saidani Original-X-From: ding-owner+M8909@lists.math.uh.edu Tue May 31 11:45:59 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dd3Iy-0005fa-L4 for ding-account@gmane.org; Tue, 31 May 2005 11:45:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1Dd3Kx-0001lH-00; Tue, 31 May 2005 04:47:03 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Dd3Kp-0001lB-00 for ding@lists.math.uh.edu; Tue, 31 May 2005 04:46:55 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1Dd3Kn-0003LM-6Q for ding@lists.math.uh.edu; Tue, 31 May 2005 04:46:53 -0500 Original-Received: from rproxy.gmail.com ([64.233.170.200]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Dd3Km-0003gq-00 for ; Tue, 31 May 2005 11:46:52 +0200 Original-Received: by rproxy.gmail.com with SMTP id b11so860183rne for ; Tue, 31 May 2005 02:46:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:cc:subject:references:user-agent:date:message-id:mime-version:content-type; b=tErpfoNfh2lrZ1jREJZTTJqZJDqzeMK8/V0UDDuh6YVccO9nv1U/W4XsRP3JpNLrNRZlHn0EDZxTwnDxqpjsHJXFSkh+gIC5wsUpHP3Uso+Ivh/6NGTkLrU0wqqhzJbTkegGhAiAhWWnOwYO4WdcVuwcgF13kMiRxixxs/kL/ZM= Original-Received: by 10.38.90.71 with SMTP id n71mr6857004rnb; Tue, 31 May 2005 02:46:50 -0700 (PDT) Original-Received: from alex ([130.158.38.234]) by mx.gmail.com with ESMTP id 79sm78872rna.2005.05.31.02.46.49; Tue, 31 May 2005 02:46:50 -0700 (PDT) Original-To: Simon Josefsson User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (usg-unix-v) X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60382 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60382 Simon Josefsson 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