From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81249 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.gnus.general Subject: Re: Best way to tunnel pop mail through ssh? Date: Tue, 07 Feb 2012 17:26:10 +0100 Message-ID: <87wr7yvcd9.fsf@gmx.de> References: <7shaz394hk.fsf@ssl-mail.com> <871uq7sela.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328632015 13551 80.91.229.3 (7 Feb 2012 16:26:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2012 16:26:55 +0000 (UTC) Cc: Damon Haley , ding@gnus.org To: Lars Ingebrigtsen Original-X-From: ding-owner+M29530@lists.math.uh.edu Tue Feb 07 17:26:52 2012 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 1RunsR-0001pY-EO for ding-account@gmane.org; Tue, 07 Feb 2012 17:26:43 +0100 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 1RunsH-00052t-Jy; Tue, 07 Feb 2012 10:26:33 -0600 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 1RunsF-00052d-RH for ding@lists.math.uh.edu; Tue, 07 Feb 2012 10:26:31 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RunsB-0007qP-HL for ding@lists.math.uh.edu; Tue, 07 Feb 2012 10:26:31 -0600 Original-Received: from mailout-de.gmx.net ([213.165.64.22]) by quimby.gnus.org with smtp (Exim 4.72) (envelope-from ) id 1Runs9-00086t-LT for ding@gnus.org; Tue, 07 Feb 2012 17:26:25 +0100 Original-Received: (qmail invoked by alias); 07 Feb 2012 16:26:19 -0000 Original-Received: from p57BB95DE.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.149.222] by mail.gmx.net (mp072) with SMTP; 07 Feb 2012 17:26:19 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+eT19dxsSev/GByfC90KjOVHVZXKJhfFdvYsQ2Xf aP+LwGPlQ9YISy In-Reply-To: <871uq7sela.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 07 Feb 2012 00:54:09 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81249 Archived-At: Lars Ingebrigtsen writes: > Damon Haley writes: > >> Could I do something like this with the GNUS 'prescript' function? > > Yes, I think so, but I don't have a recipe handy. Anyone? A while ago, I have done something like this: (setq mail-sources '((pop :server "127.0.0.1" :port 1234 :user "michael.albinus@gmx.de" :password "secret" :prescript "nohup ssh -f -L 1234:pop.server:110 remote.host sleep 3600 &")) The idea was to establish a tunnel on local port 1234 active for an hour, and to use it for connecting to the pop server. There were some small problems (sometimes, I had to retrieve new messages twice), but it did work somehow. I don't need it any longer, but it might be a starter. Best regards, Michael.