Re: [Evolution] Q: How to access mail server behind firewall with ssh?



Absolutely.  In fact, it's pretty easy if they're letting you ssh into
work from home.  Basically, you use ssh port forwarding to tunnel IMAP
over the ssh connection.  Observe...

Instead of the normal command:

% ssh somehost.somewhere.com

we point the local port 4500 at remote port 143

% ssh -L 4500:imaphost.somewhere.com:143 somehost.somewhere.com

And ssh should perform delayed name resolution so that it's the host
"somewhere" that makes the connection to "imaphost".  You can also
perform multiple mappings with this, such as:

% ssh -L 4500:imaphost.somewhere.com:143 -L
4525:imaphost.somewhere.com:25 somehost.somewhere.com

So now you're also tunnelling SMTP, such that the host "imaphost" will
thing that the connections come from "somehost", instead of your home.

Enjoy!

        -Ian

On Sun, 2002-05-26 at 19:30, Andrew Bainbridge-Smith wrote:
Greetings All,

A little background in order to pose my question.  I use evolution on my
work machine via IMAP to the corporate Exchange servers.  The
corporation firewalls, however, blocks the IMAP ports on the exchange
servers to the internet and dialup connections.  I would like to read my
email at home (using evolution) and I connect to my internal work
machine using ssh.  Obviously the internal machine can access the
exchange servers and I store most of my mail in local folders on this
machine.

My question is: "Is there a straight forward way of accessing my local
mail boxes and is there a way of accessing the exchange IMAP server?" 
The one restriction is that "only when hell freezes over" will corporate
IT allow IMAP connection from my dialup home connection.

Thanks in advance for all suggestions,
      Andrew
-- 
Dr Andrew Bainbridge-Smith
Senior Research Engineer 
Machine Vision Group
CSIRO Manufacturing Science and Technology
Australia


_______________________________________________
evolution maillist  -  evolution ximian com
http://lists.ximian.com/mailman/listinfo/evolution

-- 
                       ________________________________________
                       Ian Forde, RHCE, SCSA, SCNA, SCDME, CCSA
                       CYTBeN, Inc.
                       ian jeigh com

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]