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.

Reply via email to