ssh tunneling for mail

ssh -N -p 22 -c 3des -L 10025/localhost/25

This opens up a ssh tunnel which routes all mail sent to port 10025 on my local machine to port 25 on Dreamhost’s server.

You can make this process seamless by (1) generating a SSH key pair [ssh-keygen -t dsa] with no password (just hit return) from you personal computer, (2) copying from your personal computer to ~/.ssh/authorized_keys in your dreamhost home folder, then (3) making the above SSH tunnel line a script that automatically runs on login. On my Mac, SSH Tunnel Manager does this last step great: it creates the tunnel on login and the process is completely automatic and transparent.