From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66500 Path: news.gmane.org!not-for-mail From: Denys Duchier Newsgroups: gmane.emacs.gnus.general Subject: Re: smtpmail failure Date: Sat, 15 Mar 2008 20:50:11 +0100 Message-ID: <877ig3zs0c.fsf@univ-orleans.fr> References: <87odaicrnk.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1205684284 12355 80.91.229.12 (16 Mar 2008 16:18:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Mar 2008 16:18:04 +0000 (UTC) Cc: Stephen Berman To: ding@gnus.org Original-X-From: ding-owner+M14989@lists.math.uh.edu Sun Mar 16 17:18:33 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1JavZA-0007IX-OU for ding-account@gmane.org; Sun, 16 Mar 2008 17:18:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1JavXw-0001YQ-7W; Sun, 16 Mar 2008 11:17:16 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JacP5-0005TX-T2 for ding@lists.math.uh.edu; Sat, 15 Mar 2008 14:50:51 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JacOz-0005f6-VB for ding@lists.math.uh.edu; Sat, 15 Mar 2008 14:50:51 -0500 Original-Received: from kabis.univ-orleans.fr ([193.49.83.15] helo=ka.univ-orleans.fr) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JacP6-0006dp-00 for ; Sat, 15 Mar 2008 20:50:52 +0100 Original-Received: from smtps.univ-orleans.fr (localhost [127.0.0.1]) by ka.univ-orleans.fr (Postfix) with ESMTP id 78F2712ADFE; Sat, 15 Mar 2008 20:50:14 +0100 (CET) Original-Received: from localhost.localdomain.univ-orleans.fr (AOrleans-157-1-39-163.w90-8.abo.wanadoo.fr [90.8.222.163]) by smtps.univ-orleans.fr (Postfix) with ESMTP id DD7A736E5B; Sat, 15 Mar 2008 20:50:16 +0100 (CET) In-Reply-To: <87odaicrnk.fsf@escher.local.home> (Stephen Berman's message of "Fri, 15 Feb 2008 13:47:59 +0100") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66500 Archived-At: Stephen Berman writes: > (setq message-send-mail-function 'smtpmail-send-it > smtpmail-default-smtp-server "mail.myprovider.com" > smtpmail-smtp-service 465 > user-mail-address "Stephen.Berman@myprovider.com" > smtpmail-auth-credentials > '(("mail.myprovider.com" 465 "myusername" "mypassword"))) > > I type `M-x message-mail', type the message and send it, and Emacs locks > up for 20 minutes, then beeps and shows the message > "smtpmail-send-command: Process SMTP not running". The buffer *trace of > SMTP session to mail.myprovider.com* shows this: I have similar problems. I looked into them today and the issue seems to be with starttls-open-stream-gnutls (in starttls.el): it has a hardcoded -s option. I have found that, if I remove it or replace it by -r, then mail sending works again. I don't really understand gnutls-cli at all, but with -s it seems you have to send EOF or SIGALRM to actually start TLS... and that doesn't seem to be done in the starttls.el code. What I understand even less, is why we have open-tls-stream (tls.el) and starttls-open-stream-gnutls (starttls.el) instead of one unified way of opening tls connections. Cheers, --Denys