From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christoph Scholtes Newsgroups: gmane.emacs.devel Subject: Re: open-network-stream problems on W32 Date: Wed, 04 May 2011 21:47:32 -0600 Message-ID: <4DC21DD4.2060201@gmail.com> References: <87ipvwl1nx.wl%claudio.bley@gmail.com> <87lj05svwh.fsf@lifelogs.com> <87bp11imgb.wl%claudio.bley@gmail.com> <8739mc5nes.fsf@lifelogs.com> <87ipuubao6.fsf@lifelogs.com> <87fwpjfkkz.fsf@lifelogs.com> <87bp072fb1.fsf@lifelogs.com> <874o5vimm5.fsf@lifelogs.com> <87zknjmcyk.fsf@lifelogs.com> <87sjta2zvp.fsf@lifelogs.com> <87liyzglkh.fsf@lifelogs.com> <4DB77682.1070605@gmail.com> <8762q04ba1.fsf@lifelogs.com> <4DB79419.3030001@gmail.com> <87pqo82uxo.fsf_-_@lifelogs.com> <4DB79CEB.3020002@gmail.com> <87d3k1uey7.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1304567268 17442 80.91.229.12 (5 May 2011 03:47:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 May 2011 03:47:48 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 05 05:47:45 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QHpXU-0002jB-6r for ged-emacs-devel@m.gmane.org; Thu, 05 May 2011 05:47:44 +0200 Original-Received: from localhost ([::1]:43591 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHpXS-0001Te-SN for ged-emacs-devel@m.gmane.org; Wed, 04 May 2011 23:47:42 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHpXP-0001TX-L6 for emacs-devel@gnu.org; Wed, 04 May 2011 23:47:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHpXO-0003Yr-Hy for emacs-devel@gnu.org; Wed, 04 May 2011 23:47:39 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:44019) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHpXO-0003Yl-CX for emacs-devel@gnu.org; Wed, 04 May 2011 23:47:38 -0400 Original-Received: by iwg8 with SMTP id 8so2012977iwg.0 for ; Wed, 04 May 2011 20:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=AuSThBLU+W+EEZZuIzsVeZp57zfBg9mA64jaZM19cOg=; b=ka0OZ1fUFiL5cHpfTZGFpi9X20sxs70n/cBab4qVoOkTC+Xsj6x9s+WES8EvvvQvDG cEd44vBNsiyyD8mdYXMx7liyIoOVk4x7fT3Y/efpSLEp3J9GGwjU0tEyUul+QfsjlaHy Uqsm1lSTU31iw9J7+zpaYjH8iozBGAfdBtWfE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=nNWSogPoXPhD648EZwIpvfSvot6zUDWTCT62Yp4J0agZ3Q7xZIQecJ6bjDbLgz17pF QUXL/r4kuOcUamdW/1i6CSnARz02mjKE20j4AEuaCRwGMLdRDIIEvnWCMOFKMHOd0qrD ud7V2NPdfdV6hmDpqOz1RNLBByaXfTELGZ5z8= Original-Received: by 10.42.217.66 with SMTP id hl2mr235365icb.474.1304567256372; Wed, 04 May 2011 20:47:36 -0700 (PDT) Original-Received: from [192.168.1.4] (70-59-12-84.hlrn.qwest.net [70.59.12.84]) by mx.google.com with ESMTPS id a8sm728486ibg.48.2011.05.04.20.47.34 (version=SSLv3 cipher=OTHER); Wed, 04 May 2011 20:47:35 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: <87d3k1uey7.fsf@lifelogs.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:139132 Archived-At: On 5/2/2011 12:37 PM, Ted Zlatanov wrote: > It should Just Work; you're never hitting the GnuTLS code and > `smtpmail-send-it' is trying to use just the "gnutls-cli" command-line > utility. `smtpmail-send-it' needs to be configured or fixed in code > (probably the former). What do you mean by "you're never hitting the GnuTLS code"? I have been doing some more testing and compared behavior of the latest Emacs trunk on Debian (Squeeze) and Windows 7. I am using the same configuration in both instances: (require 'smtpmail) (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.gpg") smtpmail-default-smtp-server "smtp.gmail.com" smtpmail-smtp-server "smtp.gmail.com" smtpmail-smtp-service 587 user-mail-address "myadress@gmail.com" smtpmail-debug-info t) On Debian, at first, I didn't have `gnutls-bin' installed, so it failed with the same error as on Windows ("SMTP protocol error", see my earlier post). I then installed `gnutls-bin' and then everything worked fine. Sending... Sending via mail... Opening STARTTLS connection to `smtp.gmail.com:587'...done 220 mx.google.com ESMTP d9sm723168ibb.19 250-mx.google.com at your service, 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250 ENHANCEDSTATUSCODES 220 2.0.0 Ready to start TLS 250-mx.google.com at your service, 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH 250 ENHANCEDSTATUSCODES 235 2.7.0 Accepted 250 2.1.0 OK d9sm723168ibb.19 250 2.1.5 OK d9sm723168ibb.19 354 Go ahead d9sm723168ibb.19 250 2.0.0 OK 1304566065 d9sm723168ibb.19 Sending...done On Windows, I noticed that it couldn't find `gnutls-cli' either so I added the directory with the executable to the Emacs path. Now I get this: Sending... Sending via mail... Opening STARTTLS connection to `smtp.gmail.com:587'...done 220 mx.google.com ESMTP 4sm723326ibc.15 250-mx.google.com at your service, 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250 ENHANCEDSTATUSCODES c:/Users/Christoph/A: 0% (0/105) c:/Users/Christoph/A: 100% (105/105) c:/Users/Christoph/A: 0% (0/105) c:/Users/Christoph/A: 100% (105/105) 530 5.7.0 Must issue a STARTTLS command first. 4sm723326ibc.15 221 2.0.0 closing connection 4sm723326ibc.15 while: Sending failed; SMTP protocol error Why is the behavior with the same configuration different on Windows than on GNU/Linux? For the record, I made sure that I am using the same GnuTLS version on Windows and GNU/Linux, v2.8.6. Christoph