From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83133 Path: news.gmane.org!not-for-mail From: "Steinar Bang" Newsgroups: gmane.emacs.gnus.general Subject: nnimap unable to open server unknown service 993 Date: Tue, 07 May 2013 13:00:08 +0200 Organization: Probably a good idea Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1367924549 25196 80.91.229.3 (7 May 2013 11:02:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 May 2013 11:02:29 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31399@lists.math.uh.edu Tue May 07 13:02:30 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UZffB-0006nQ-Us for ding-account@gmane.org; Tue, 07 May 2013 13:02:30 +0200 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 1UZfdF-0006Yx-LA; Tue, 07 May 2013 06:00:29 -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 1UZfdE-0006Yo-AI for ding@lists.math.uh.edu; Tue, 07 May 2013 06:00:28 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1UZfd8-00026b-Gk for ding@lists.math.uh.edu; Tue, 07 May 2013 06:00:28 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1UZfd6-0006dt-H6 for ding@gnus.org; Tue, 07 May 2013 13:00:20 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UZfd2-0004x5-T2 for ding@gnus.org; Tue, 07 May 2013 13:00:16 +0200 Original-Received: from steria10.steria.no ([195.204.41.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 May 2013 13:00:16 +0200 Original-Received: from sb by steria10.steria.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 May 2013 13:00:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 102 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: steria10.steria.no User-Agent: Opera Mail/12.15 (Win32) X-Spam-Score: -3.2 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83133 Archived-At: Platform: Windows 7, emacs 24.3.1, Ma Gnus v0.8 (git HEAD), GNU TLS gnutls-3.0.9-w32-bin.zip from http://sourceforge.net/projects/ezwinports/files/ Summary: I haven't found a solution for the problem yet. Any assistance/ideas/guesses will be appreciated. What follows are my experiments and results. When connecting I get the following messages in the minibuffer: Opening nnimap server on privat... Opening connection to imap.mydomain.com via tls... Unable to open server nnimap+privat due to: Unknown service: 993 Opening nnimap server on privat...failed: Connecting to the same IMAP server with Opera on the same computer, succeeds (so there should be no firewall issues). The nnimap server is defined as a secondary select method: (setq gnus-secondary-select-methods '((nnimap "privat" (nnimap-address "imap.mydomain.com") (nnimap-authenticator cram-md5) (nnimap-stream ssl)) (nntp "news.gmane.org") (nndiary "") )) I have installed GNU TLS by downloading the bin.zip file from the above URL, extracting all DLL files in the bin directory of the zip file, and dropping them into the emacs bin directory. That makes emacs 24 pick them up and use the built-in TLS. I have googled for this error message and found this thread: https://groups.google.com/forum/?fromgroups=#!topic/gnu.emacs.gnus/vTPHwp0hVak which probably isn't the issue, because 1. My c:/Windows/System32/drivers/etc/services contain the line: imaps 993/tcp #IMAP4 protocol over TLS/SSL 2. I'm running git gnus HEAD, which should contain the fix that Lars talked about at the end of the thread I found this thread which looked more promising: http://thread.gmane.org/gmane.emacs.gnus.user/14695 From that thread it looked like the cause of the error message, might be a certificate issue. My IMAP server's certificate is signed by http://cacert.org so not having the Cacert.org CA certificate installed where GNU TLS could find it, looked like a likely culprit. The question was then: where should I drop the cacert.org CA certificate so that the GNU TLS DLL in emacs would pick it up? Googling some more, I found this: http://www.gnu.org/software/emacs/manual/html_node/emacs-gnutls/Help-For-Users.html The value of gnutls-trustfiles, was: ("/etc/ssl/certs/ca-certificates.crt" "/etc/pki/tls/certs/ca-bundle.crt" "/etc/ssl/ca-bundle.pem" "/usr/ssl/certs/ca-bundle.crt") I downloaded the cacert.org class 1 sertificate from http://www.cacert.org/index.php?id=3 I saved the downloaded file as C:\ProgramFiles\emacs-24.3\etc\gnutls\cacert.org_root.crt I evaluated the following in the scratch buffer: (push "C:/ProgramFiles/emacs-24.3/etc/gnutls/cacert.org_root.crt" gnutls-trustfiles) I then tried to start gnus, but I got the same issue. I have tried the log levels 1, 2 and 5, by evaluating (setq gnutls-log-level 1) and then tried `M-x gnus', and when that didn't give anything meaningful, I evaluated (setq gnutls-log-level 2) and then tried `M-x gnus', and when that didn't give anything meaningful, I evaluated (setq gnutls-log-level 5) and then tried `M-x gnus'. But not even log level 5 gave me any clue that there were CA issues with the nnimap connection. It did show that GNU TLS was active, though. And that GNU TLS used the cacert.org cert, when trying to open an nntps connection to news.gmane.org: Opening nnimap server on privat... Opening connection to imap.mydomain.com via tls... Unable to open server nnimap+privat due to: Unknown service: 993 Opening nnimap server on privat...failed: Opening nntp server on news.gmane.org... gnutls.c: [1] (Emacs) allocating credentials gnutls.c: [2] (Emacs) allocating x509 credentials gnutls.c: [2] (Emacs) using default verification flags gnutls.c: [1] (Emacs) setting the trustfile: C:/ProgramFiles/emacs-24.3/etc/gnutls/cacert.org_root.crt gnutls.c: [1] (Emacs) gnutls callbacks gnutls.c: [1] (Emacs) gnutls_init ...[snip! news.gmane.org stuff]