Re: how to point Mutt to a VPN connection

2017-08-01 Thread Ian Zimmerman
On 2017-08-01 15:17, Yubin Ruan wrote:

> I am wondering whether it is possible to point Mutt to connect to a
> VPN client that is listening at a local port whenever I want to have
> direct imap access to my mail server. Currently I configure Mutt to
> connect to the Gmail server using gmail directly with imap. But as
> gmail is kind of blocked in my company so connection is slow. I have
> to use a VPN. I have setup a VPN client locally. What is left to do is
> to point Mutt to use that VPN client as a network interface for
> connection so that things can speed up.

In addition to the advice already given by Patrick (good, but somewhat
indirect):

Run a long lived ssh process on the other side of the VPN with port
forwarding (that is, the -L option, or probably multiple -L options).
Bind to local address of that to the VPN server address (I'll call that
A_vpn).  Point the remote to the Google (or whatever) servers.  Then
tell mutt to use the fake servers on A_vpn you have just set up.

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
Do obvious transformation on domain to reply privately _only_ on Usenet.


Re: how to point Mutt to a VPN connection

2017-08-01 Thread Patrick Shanahan
* Yubin Ruan  [08-01-17 03:23]:
> Hi,
> 
> I am wondering whether it is possible to point Mutt to connect to a
> VPN client that is listening at a local port whenever I want to have
> direct imap access to my mail server. Currently I configure Mutt to
> connect to the Gmail server using gmail directly with imap. But as
> gmail is kind of blocked in my company so connection is slow. I have
> to use a VPN. I have setup a VPN client locally. What is left to do is
> to point Mutt to use that VPN client as a network interface for
> connection so that things can speed up.

use the vpn as your mail cache/server.  install mutt and screen or tmux on
the vpn.  use mutt on the vpn via ssh or an ssh tunner and screen or tmux.

or I believe better and what I do.  connect to your home machine via ssh
to a running screen or tmux session and use mutt there to read your mail.

-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
Registered Linux User #207535@ http://linuxcounter.net
Photos: http://wahoo.no-ip.org/piwigo   paka @ IRCnet freenode


how to point Mutt to a VPN connection

2017-08-01 Thread Yubin Ruan
Hi,

I am wondering whether it is possible to point Mutt to connect to a
VPN client that is listening at a local port whenever I want to have
direct imap access to my mail server. Currently I configure Mutt to
connect to the Gmail server using gmail directly with imap. But as
gmail is kind of blocked in my company so connection is slow. I have
to use a VPN. I have setup a VPN client locally. What is left to do is
to point Mutt to use that VPN client as a network interface for
connection so that things can speed up.

Any idea?

Yubin