Discussion:
how to point Mutt to a VPN connection
Ian Zimmerman
2017-08-01 16:49:52 UTC
Permalink
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.
Patrick Shanahan
2017-08-01 10:59:26 UTC
Permalink
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.org openSUSE Community Member facebook/ptilopteri
Registered Linux User #207535 @ http://linuxcounter.net
Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode
Loading...