[Grml] msmtp through ssh-tunnel

Maurice McCarthy moss at mythic-beasts.com
Fri Oct 10 12:18:15 CEST 2008


On Thu, Oct 09, 2008 at 02:08:02PM -0700 or thereabouts, John Magolske wrote:

> 
> Wanting to tunnel msmtp through ssh, I tried this in my ~/.msmtprc:
> 
>   from username1 at mydomain.net
>   ssh -l john -L 9999:mydomain.net:25 username1 at mydomain.net -N -f
>   host localhost
>   port 9999
> 

Don't know if it will help but perhaps you need a preconnect command:

preconnect "ssh -l john -L 9999:mydomain.net:25 username1 at mydomain.net -N -f sleep 5"

regards
Moss





More information about the Grml mailing list