Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

ssh -L -L 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 -L 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
        LocalForward    9993
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. – dotcrash Sep 21 '11 at 14:12

Your Answer


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.