From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: How to use Gnus nnimap through socks5 proxy Date: Tue, 06 Jan 2015 16:12:41 +0800 Message-ID: <878uhgxr7q.fsf@ericabrahamsen.net> References: <86wq50s7qt.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1420532152 17458 80.91.229.3 (6 Jan 2015 08:15:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Jan 2015 08:15:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 06 09:15:40 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y8PFN-0004qs-CF for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jan 2015 09:12:13 +0100 Original-Received: from localhost ([::1]:35279 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8PFM-0000GV-OY for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jan 2015 03:12:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8PFA-0000GQ-6w for help-gnu-emacs@gnu.org; Tue, 06 Jan 2015 03:12:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8PF7-0000jW-1C for help-gnu-emacs@gnu.org; Tue, 06 Jan 2015 03:12:00 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:39752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8PF6-0000jS-QI for help-gnu-emacs@gnu.org; Tue, 06 Jan 2015 03:11:56 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y8PCk-0001jt-V0 for help-gnu-emacs@gnu.org; Tue, 06 Jan 2015 09:09:31 +0100 Original-Received: from 222.129.224.90 ([222.129.224.90]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Jan 2015 09:09:30 +0100 Original-Received: from eric by 222.129.224.90 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Jan 2015 09:09:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 222.129.224.90 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:sF4pnrwSzb/YwobKMKber5aoET0= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101901 Archived-At: Quanyang Liu writes: > Hi all, > > I am from somewhere in which people can not access to google...So, I > want to use a socks5 proxy. > > I found there is socks.el, and I can use it to connect IRC. But I can > not find a way to use it in gnus. > > Does anyone here has idea about it? [eric@pellet ~]$ grep imap.gmail.com /etc/hosts 173.194.65.108 imap.gmail.com :) Otherwise, I use isync to sync my mail to a local dovecot server, and have Gnus connect to that dovecot server, rather than to Gmail directly. In that case, I can use a directive like this in my ~/.mbsyncrc file: Tunnel "ssh server.I.own tcpconnect imap.gmail.com 993" To run the traffic around. Of course, you need to have a server outside the country! But if you're not using a local dovecot, you could probably use a similar shell command in the nnimap setup of your ~/.gnus.el file. Eric