From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/72313 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Bj=C3=B8rn_Mork?= Newsgroups: gmane.emacs.gnus.general Subject: A few basic nnimap problems Date: Thu, 30 Sep 2010 19:03:11 +0200 Organization: m Message-ID: <87aamz17w0.fsf@nemi.mork.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1285866218 2163 80.91.229.12 (30 Sep 2010 17:03:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Sep 2010 17:03:38 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M20686@lists.math.uh.edu Thu Sep 30 19:03:37 2010 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.69) (envelope-from ) id 1P1MXb-0007iN-H5 for ding-account@gmane.org; Thu, 30 Sep 2010 19:03:32 +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 1P1MXa-0004lO-07; Thu, 30 Sep 2010 12:03:30 -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 1P1MXX-0004ko-Af for ding@lists.math.uh.edu; Thu, 30 Sep 2010 12:03:27 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P1MXV-0003My-UF for ding@lists.math.uh.edu; Thu, 30 Sep 2010 12:03:27 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P1MXV-0001TA-00 for ; Thu, 30 Sep 2010 19:03:25 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P1MXQ-0007e8-9Q for ding@gnus.org; Thu, 30 Sep 2010 19:03:20 +0200 Original-Received: from nemi.mork.no ([148.122.252.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Sep 2010 19:03:20 +0200 Original-Received: from bjorn by nemi.mork.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Sep 2010 19:03:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 61 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: nemi.mork.no User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:M+kqEQOgABQucOJWy4X6m3aoPv8= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:72313 Archived-At: I am slow... I have spent some time now trying to just get a basic nnimap connection going on a test account, so that I am able to experiment a bit without risking anything. The problems are: 1. nnimap seems to default to "imaps", so you actually have to configure some none-default setting to get a connection on any sane server (using STARTTLS on port 143) 2. setting (nnimap-stream 'starttls) doesn't help either, as this requires some odd binary I didn't have: "Unable to open server nnimap+example.net due to: Searching for program: no such file or directory, gnutls-cli" Note that I do have openssl, and have no problems using it to initiate a STARTTLS session: $ openssl s_client -starttls imap -connect example.com:143 -no_ssl2 -ign_eof CONNECTED(00000003) [..] SSL-Session: Protocol : TLSv1 Cipher : AES256-SHA [..] --- . OK CAPABILITY completed 3. Even after doing "apt-get install gnutls-bin", starttls is still no-go: "Unable to contact example.com:nil via (quote starttls)" 4. Giving up STARTTLS and using (nnimap-stream 'network) does not make much difference. Similar error 5. Going for (nnimap-stream 'shell), which I *know* works since I use that for my regular mail, also gives a few problems. The imap-shell-program variable does not seem to be respected, but instead gnus defaults to ssh'ing to the imap server. 6. Even allowing the ssh is not enough. Gnus complains about a missing ssh-askpass binary unless the host key was already cached. OK, I finally got the imap connection up, but I believe there is far too much hassle and it seems currently impossible to configure Gnus for a "normal" IMAP connection. I believe this: (setq gnus-select-method '(nnimap "example.com")) should result in a working connection to any IMAP server listening on port 143/tcp, and automatically enable STARTTLS if supported by the server. Bjørn