From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87416 Path: news.gmane.org!.POSTED!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general Subject: Problems running IMAP over ssh port forwarding Date: Mon, 27 Feb 2017 10:23:48 +0100 Organization: Probably a good idea Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1488212620 4090 195.159.176.226 (27 Feb 2017 16:23:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2017 16:23:40 +0000 (UTC) User-Agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/24.4 (windows-nt) To: ding@gnus.org Original-X-From: ding-owner+m35637@lists.math.uh.edu Mon Feb 27 17:23:33 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048035.atla03.us.yomura.com ([107.189.48.35]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciO59-0008Ka-TD for ding-account@gmane.org; Mon, 27 Feb 2017 17:23:28 +0100 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048035.atla03.us.yomura.com (Halon) with ESMTPS id 13debe63-fd09-11e6-b156-b499baabecb2; Mon, 27 Feb 2017 16:23:31 +0000 (UTC) Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.87) (envelope-from ) id 1ciO4U-0005I8-Bb; Mon, 27 Feb 2017 10:22:46 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1ciO4R-0005Hd-MM for ding@lists.math.uh.edu; Mon, 27 Feb 2017 10:22:43 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1ciO4P-0004Ex-AE for ding@lists.math.uh.edu; Mon, 27 Feb 2017 10:22:43 -0600 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1ciO4N-0002cP-T4 for ding@gnus.org; Mon, 27 Feb 2017 17:22:39 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ciO4G-0003hU-Ad for ding@gnus.org; Mon, 27 Feb 2017 17:22:32 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 32 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:X29ZJkExmiGj1ORvOGk4cfXvPBE= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87416 Archived-At: Platform: Windows 7, GNU Emacs 24.4.1 (i686-pc-mingw32) of 2014-10-24 on LEG570 Ma Gnus v0.16 (last standalone git version) I tried setting up a port forwarding like so: ssh -L 143:localhost:143 mysever.mydomain I then tried setting the IMAP server like this: (setq gnus-secondary-select-methods '((nnimap "privat" (nnimap-address "localhost") (nnimap-authenticator cram-md5) (nnimap-server-port 143)) )) However this doesn't work. In the " *nnimap localhost 143 **nntpd*" buffer, I saw the following (replaced CR with explicit "^M" to be able to send it in this message): [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=CRAM-MD5] Dovecot ready.^M BAD CR sent without LF^M * BAD Error in IMAP command received by server.^M * BAD Error in IMAP command received by server.^M * BYE Too many invalid IMAP commands.^M Process *nnimap* connection broken by remote peer Does anyone have an idea what could be wrong here? Thanks! - Steinar