From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/72333 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Bj=C3=B8rn_Mork?= Newsgroups: gmane.emacs.gnus.general Subject: Re: A few basic nnimap problems Date: Thu, 30 Sep 2010 20:04:27 +0200 Organization: m Message-ID: <8762xn151w.fsf@nemi.mork.no> References: <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 1285869906 19872 80.91.229.12 (30 Sep 2010 18:05:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Sep 2010 18:05:06 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M20706@lists.math.uh.edu Thu Sep 30 20:05:02 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 1P1NV2-0006xb-LH for ding-account@gmane.org; Thu, 30 Sep 2010 20:04:56 +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 1P1NUt-0005nQ-N8; Thu, 30 Sep 2010 13:04:47 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P1NUr-0005nA-Mn for ding@lists.math.uh.edu; Thu, 30 Sep 2010 13:04:45 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P1NUn-0000Sm-9A for ding@lists.math.uh.edu; Thu, 30 Sep 2010 13:04:45 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P1NUm-0002LM-00 for ; Thu, 30 Sep 2010 20:04:40 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P1NUi-0006om-TY for ding@gnus.org; Thu, 30 Sep 2010 20:04:36 +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 20:04:36 +0200 Original-Received: from bjorn by nemi.mork.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Sep 2010 20:04:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 85 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:EMPyaysq2zse7/m5U0eqbRxF+HY= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:72333 Archived-At: Lars Magne Ingebrigtsen writes: > Bjørn Mork writes: > >> 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) > > I think imaps is probably more popular these days than imap + starttls. really? Anyway, I still expect an imap client to connect to the imap port by default. Just as I expect my browser to connect to port 80 by default, although 443 might become more popular over time. >> 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: > > Yeah, I don't know what's going on in the starttls.el file. There's a > gazillion variables to set there, but nothing to explain how to just use > openssl s_client. Does anybody have a recipe? > >> 3. Even after doing "apt-get install gnutls-bin", starttls is still >> no-go: "Unable to contact example.com:nil via (quote starttls)" > > That sounds odd. You probably have something like: > > '(nnimap "..." > (nnimap-stream 'starttls)) > > And the second quote shouldn't be there. You mean like '(nnimap "..." (nnimap-stream starttls)) ? I wondered about that, so I looked at the documentation which had an example with the quote. Anyway, with only this in ~/.gnus: (setq gnus-select-method '(nntp "news.gmane.org")) (setq gnus-secondary-select-methods '( (nnimap "mail.mork.no" (nnimap-stream starttls))) ) I get: Warning: Opening nnimap server on mail.mork.no...failed: ; Denied server nnimap+mail.mork.no; Opening nnimap server on mail.mork.no...failed: ; Unable to open server nnimap+mail.mork.no due to: Buffer *nnimap mail.mork.no nil *nntpd** has no process >> 4. Giving up STARTTLS and using (nnimap-stream 'network) does not make >> much difference. Similar error > > Same problem. Yup, removing the quote does fix this. > >> 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. > > See nnimap-shell-program. Aw, right. I should have guessed. >> (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. > > It does work with imap.gmail.com, since it's an imaps server. :-) So I need to listen to yet another port just to do ssl... The world isn't going forward, is it? Bjørn