# How can I use Gnus to access Gmail IMAP through http(s) firefwall?

My company's firewall only allow http and https connections.

To access internet, I have to specify the proxy before connecting the internet:

export http_proxy=http://my-company.com
export https_proxy=http://my-company.com


That's the current situation.

My question is how can I use Gnus to access Gmail's IMAP server through? What's the setup? Has anyone actually done this?

I've no problem to connect Gmail's IMAP server without proxy.

I did some investigation, looks Gnus is using openssl to connect to the Gnus.

so the first step is ask openssl to use proxy (because Gnus is using openssl) but I've not succeeded yet.

• Not sure exactly what the question is, but if you're running into issues with Gnus and Gmail you might want to experiment with using something like isync.sourceforge.net/mbsync.html to synchronize your mail to a local Maildir and then using Gnus with the Maildir. – shosti Sep 24 '14 at 7:25
• Do you mean you can only access gmail via HTTP(S) and not IMAP because of the firewall you're behind? In that case, you can't. Although you could setup another IMAP / proxy somewhere else which is accessible from your location. – remvee Sep 24 '14 at 7:55
• my company has a firewall which allow only http and https traffic, but I want to use Gnus to access IMAP. – chen bin Sep 24 '14 at 11:08
• Maybe this will help: zderadicka.eu/accessing-imapsmtp-via-https-proxy – mpontus Sep 24 '14 at 19:01
• @chenbin you should edit your question to reflect what the problem really is -- that you are trying to get through a firewall. – Eric Brown Sep 24 '14 at 23:21