On Sun, Jun 26, 2011 at 08:04:09PM -0700, Dr. Ed Morbius wrote:
> 
> The second hitch is coming up with a good way to have local mail
> submitted to the remote host when sending.  Local and remote MTAs are
> both exim4.  I'm thinking some magick with SSH (ssh-agent is running) or
> such.

Make your local MTA send all mail to local:2525.

Construct a mail tunnel with SSH and autossh and an SSH key
which is limited via authorized_keys on the remote host to 
only build a tunnel from local:2525 to remote:25.

autossh -N -L 2525:localhost:25 -i ~/.ssh/mail_key remote.example.com &

-dsr-

-- 
http://tao.merseine.nu/~dsr/eula.html is hereby incorporated by reference.
You can't fight for freedom by taking away rights.

Reply via email to