Server Fault is a question and answer site for system and network administrators. 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

How can I connect to IMAP (for example in Outlook from behind a HTTP proxy (no authentication needed) ?

share|improve this question
up vote 2 down vote accepted

IMAP is a different protocol and uses different ports than HTTP. The standard ports for IMAP are 143 and 993 for secure IMAP.

If you have problems connecting, I suspect that your firewall/router is blocking the IMAP port(s).

share|improve this answer

The HTTP-Proxy can support the CONNECT method to allow ssl. Using it you can connect to port 443 anywhere. The question is whether your proxy allows other ports. 25 is usually blocked because of spammers.

Try it:

I think telnet proxy port CONNECT

If it is rejected, bad luck.

Otherwise download socat and point your client to and let socat forward that local port towards gmail using the PROXY function. socat can do what you need. I can give a command line if you need it.

share|improve this answer
-1, not relevant to the question. – tomfanning Aug 3 '09 at 11:45
it is... http proxies can be tricked to forward connections – asdmin Aug 5 '09 at 8:43

several utilities can be used to trick a https proxy to forward arbitary data, for example:

  • connect-proxy - Establish TCP connection using SOCKS4/5 or HTTP tunnel
  • corkscrew - tunnel TCP connections through HTTP proxies
  • desproxy - tunnel TCP traffic through a HTTP proxy
  • proxychains - redirect connections through proxy servers
  • share|improve this answer

    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.