patriotlkp.blogg.se

Acess imapclient behind proxy python
Acess imapclient behind proxy python






acess imapclient behind proxy python

Acess imapclient behind proxy python install#

On Linux based machines the solution is to install and run corkscrew, a program that can tunnel the SSH protocol through an HTTP Proxy.ġ) First install the corkscrew program with your package manager. Using SSH to connecting to an host when an HTTP Proxy is between the client and the host, can not be done directly without some configuration. Of course for thunderbird to work, first is needed to create the tunnels. Just use as IMAP server the localhost and port 1993, and as SMTP server the localhost and 1465 port. When this two connections are established, then the local machine ports 19 connect through ssh and corkscrew tunnelling to the mail server… and thunderbird can now work as it should. The -p 12345 is the port that my remote ssh server is running on and listening on for connections, and of course, mysshserver is the dns or ip address for the ssh server.

acess imapclient behind proxy python

The 1993 is the port at the local address 127.0.0.1 that is listening to connections from thunderbird. Where is the name or external IP of the IMAP server and 993 is the secure IMAP port. Just open up two terminal sessions, and if you have ssh through corkscrew tunnelling working (see my previous posts: ), it’s simple as executing this: I run ssh on this server on a non standard port. Great price per year (around 2€ per month). Right now, I use a Linux VPS, located somewhere in the world ( 🙂 ) that I’ve bought through the site. This ssh server must be able to contact and connect to the required mail server, namely accessing their IMAP and SMTP ports. The solution that I’m using for allowing Thunderbird (and if you really want, Kmail) to connect to my employer IMAP and SMTP servers, is not straightforward but it simply works…įor this to work you really need an external server where you can connect through ssh.








Acess imapclient behind proxy python