Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Is it possible to use Sparrow over a SSH-tunnel since the imap and ssl ports are blocked at my work?

share|improve this question
add comment

1 Answer

I think your basic strategy is correct, e.g.:

ssh -L 587:smtp.gmail.com:587 -L 993:imap.gmail.com:993 user@yourremotehost

should get you talking to Gmail via yourremote host. Potential problems are if you do not run this as root (with sudo), you are not allowed to specify local ports below 1024 - so you can't use 587 or 993 as your local ports. So, do something like this:

ssh -L 9587:smtp.gmail.com:587 -L 9993:imap.gmail.com:993 user@yourremotehost

...and configure Sparrow to talk to localhost on those high local port numbers instead of the defaults.

Again, you can debug by trying 'telnet localhost 9587' which should get you an SMTP prompt from Gmail. If that works, you should feel confident that the SSH part is working, and concentrate on Sparrow configuration.

If you get it all working, an alternative to the commandline switches is to make a file called 'config' in your local .ssh directory that looks like this:

Host yourremotehost    
        LocalForward    9587    smtp.gmail.com:587
        LocalForward    9993    imap.gmail.com:993
share|improve this answer
    
Really strange. It doesn't work for me. Can anyone try the above if you got blocked by a firewall and can't use Sparrow. –  norrfors Sep 21 '11 at 14:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.