Failed to connect to imap.gmail.com:993: HTTP/1.1 403 Forbidden

Hi to all, I tried to connect to the gmail imap server and in all cases where I use proxies it gives me the 403 forbidden error

If i try to connect to the imap server without a proxy, it works without problems

Is there a way to disable the proxy to connect to an imap server? would be great (like captchas)

image

The easiest thing you can do in situations like these is use IPv6 (my ISP gives me a /56 block of IPv6 addresses. (18,446,744,073,709,551,616 IPv6 x 256 networks).

Chances are you have at least a /64 ( 18,446,744,073,709,551,616 IPv6’s) and you can setup your own proxy to use theme. Plenty of guides out there on how to do it.

If you dont want to do that, you can always use something like GSA Proxy Scraper. You can set it to test against any site to see if it works, even gmail.

Unfortunately my proxy provider does not provide IPv6 addresses…

If there is any way to disable the proxy for the IMAP module only it would be great.

I have been thinking about creating a local reverse proxy of the IMAP server, but I don’t know if it can work

You can just disable the proxy before the block(s) and re-enable it after the block(s)

SET USEPROXY FALSE

BLOCK:ImapConnect
blahblah
ENDBLOCK

SET USEPROXY TRUE
3 Likes

Ohh is fantastic! thanks Ruri :smiley: