From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Phillip Lord Newsgroups: gmane.emacs.devel Subject: Re: TLS smpt encryption Date: Mon, 11 Sep 2006 15:42:39 +0100 Message-ID: References: <87bqptfj75.fsf@latte.josefsson.org> <87hczeijv5.fsf@latte.josefsson.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157985797 2493 80.91.229.2 (11 Sep 2006 14:43:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Sep 2006 14:43:17 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 11 16:43:15 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GMn05-0004Vn-Hw for ged-emacs-devel@m.gmane.org; Mon, 11 Sep 2006 16:43:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMn05-0002WL-1P for ged-emacs-devel@m.gmane.org; Mon, 11 Sep 2006 10:43:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GMmzs-0002S9-Ve for emacs-devel@gnu.org; Mon, 11 Sep 2006 10:42:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GMmzr-0002Os-Vg for emacs-devel@gnu.org; Mon, 11 Sep 2006 10:42:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMmzr-0002Oa-M1 for emacs-devel@gnu.org; Mon, 11 Sep 2006 10:42:51 -0400 Original-Received: from [128.240.234.84] (helo=cheviot8.ncl.ac.uk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GMn19-0002wd-Ah for emacs-devel@gnu.org; Mon, 11 Sep 2006 10:44:11 -0400 Original-Received: from DINLEY (dinley.ncl.ac.uk [128.240.150.78]) by cheviot8.ncl.ac.uk (8.13.6/8.13.1) with ESMTP id k8BEgd5W001179 for ; Mon, 11 Sep 2006 15:42:39 +0100 Original-To: emacs-devel@gnu.org In-Reply-To: <87hczeijv5.fsf@latte.josefsson.org> (Simon Josefsson's message of "Mon, 11 Sep 2006 16:00:14 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Received-SPF: pass (cheviot8.ncl.ac.uk: 128.240.150.78 is authenticated by a trusted mechanism) X-Newcastle-MailScanner-Information: Please contact Postmaster@newcastle.ac.uk for more information X-Newcastle-MailScanner: Found to be clean X-Newcastle-MailScanner-MCPCheck: MCP-Clean, MCP-Checker (score=0, required 1) X-Newcastle-MailScanner-From: phillip.lord@newcastle.ac.uk X-NCL-Spam-Status: No X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59692 Archived-At: >>>>> "SJ" == Simon Josefsson writes: SJ> I've seen it suggested that people have had success on Windows SJ> using the starttls binary instead of gnutls-cli. But I don't SJ> really know what works under Windows, so I don't know how to SJ> improve things here. >> >> The problem is with your process handling. >> >> (signal-process (process-id process) 'SIGALRM) >> >> wont work. SJ> Why not? Wouldn't that a bug in NTEmacs? >> If you are using the cygwin gnutls, then this can be faked using >> "kill" directly, but NTEmacs cannot send this signal, at least to >> my knowledge. SJ> If "kill" can do it, then probably NTEmacs could too. And SJ> NTEmacs probably should do that, especially if `signal-process' SJ> doesn't do anything useful at all under Windows. However, some SJ> NTEmacs person should answer this. No. "kill" in question is cygwin kill, which NTEmacs doesn't know about. NTEmacs is a windows process, so only knows how to send windows process signals. As far as I know, windows doesn't do SIGALRM -- I could be wrong. I try not to get this close to the OS where ever possible. >> I might try starttls, but in general, its easier to have as few >> extraneous binaries as possible, hence the desire to use >> >> If TLS is compatible with SSL, would it not possible to use the >> SSL binaries. As I say, the IMAP code works fine using SSL? SJ> IMAP uses the same library, starttls.el, as SMTP. So they are SJ> already using the same tools. Btw, IMAP uses TLS, strictly SJ> speaking. No, I don't think you are right. From the Gnus/imap documentation. * "tls:" Connect through TLS. Requires GNUTLS (the program `gnutls-cli'). * "ssl:" Connect through SSL. Requires OpenSSL (the program `openssl') or SSLeay (`s_client'). So, I am using OpenSSL not tls, nor gnutls-cli to communicate with my IMAP server. The communication layer works fine here. Certainly, my imap connections worked fine without gnutls-cli being installed. >> Yep. Once everwhere goes, I can no longer send email with >> emacs. I spent 6 months on outlook this year and the experience >> was, er, less than optimal, shall I say. SJ> Many people have migrated to SMTP over TLS with Emacs too, I SJ> remember writing the first support for this in Emacs around 2000 SJ> to 2001 somewhere, and many used it successfully even back then. Under windows? Phil