How to tunnel smtp via ssh.

I am using Comcast for Internet and they closed the outgoing port 25 (the smtp port). As a consequence, all e-mail client using smtp protocol to send e-mails to a outside e-mail server fail.
Here is a work around via ssh tunnelling.
I assume your private IP is 192.168.0.101
1. Configure the smtp server of your e-mail client as localhost on port 8765 (Any port > 1024 should work.) 2. If you have a router, config your router to route incomming connections to port 8765 to your machine(192.168.0.101). 3. run the following command:
ssh -L8765:remote smtp server:25 username@remote server
after typing your password, your e-mail client is working now.