HOW-TO: use a non WBS SMTP server with SSH tunneling

slimothy

Banned
Joined
Jan 14, 2005
Messages
4,808
If you don't want to use wbs' smtp server for some reason or if you cant access it and you have a SSH shell on another server some where this is how you can bypass wbs and have a little more freedom from the retards.

All you need to do is create a SSH tunnel to a server, a tunnel if you dont know is sending data meant for one protcol through another. In this case we take SMTP data and send it through the SSH protocol and use your SSH box as a proxy. All traffic is encrypted too obviously, so not even WBS can read your mail.

Use putty as your client and when you start it go to the tunnels category on the left, its at the bottom. Now you're going to define some port forwarding rules, the objective is to have our SMTP traffic flowing like this:

Email program -> localhost, port 25 -> SSH server -> mail.domain.com, port 25

so in the 'source port' textbox put 25 and in the destination textbox put the address of your preferred smtp server and the port like mail.domain.com:25, if the SMTP server is on the same server you connect to for SSH then just put localhost:25

click add and connect to your SSH server, putty will then send the commands to use port forwarding to SSH and you can now send your SMTP traffic through a SSH tunnel. All thats left is you need to edit the smtp address in your email application to localhost on port 25 (or whatever port you used).

If putty isnt your style try bitvise tunellier, it sits in the tray, auto recconects and is pretty quiet the whole time so its probably the better option if you plan to tunnel your smtp data permanantly.

If you dont have a shell and wanna do this anyway you can get them all over the net for really cheap, like $1 and less.
 

JasonH

Senior Member
Joined
Mar 27, 2005
Messages
580
Hi slim,

i did what you said but how do u connect to a shell server now?
 

Crash

Senior Member
Joined
Nov 15, 2004
Messages
942
If you have a shell server, you should have and IP address and login.
Put the IP Address in the hostname area of putty. Scroll down and find the Tunnels section. Then add your tunnel. You will be asked to login and enter you username and password.
You have to leave putty running while you want to use the tunnel. Close putty and the tunnel shuts down.

Hey Slimothy. You can also use SMTP via an SSL connection. Gmail supports that. As it's encrypted and on a strange port, you can get around WBS blocking.
 
Top