Using stunnel to allow legacy email client on Android to work with Gmail


If you have a legacy email client on Android but Gmail blocks it because it isn't compatible with the latest TLS encryption technology, do the following:

Install SSLSocks (which contains stunnel)

Create a key/cert on Linux:

openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout stunnel.pem -out stunnel.pem

Transfer the stunnel.pem key to your phone

Open the SSLSocks app and go to the Certs/Keys tab and browse to add stunnel.pem

Then go to the Config tab and add to the following to the bottom of the stunnel.conf textarea:

[Gmail POP Incoming]
accept = 127.0.0.1:7995
connect = pop.gmail.com:995

[Gmail SMTP Outgoing]
accept = 127.0.0.1:7587
connect = smtp.gmail.com:587

Then go to the Home tab and move the slider to start stunnel

Run your legacy email client and verify it can now connect.

Open the SSLSocks app settings page to enable it to autostart at boot.

Enjoy!

Comments

Popular Posts