On Tuesday, 21 September 2010, 12:30:03 +0300, Alexander Gattin <xr...@yandex.ru> wrote: > Hello, > > On Tue, Sep 21, 2010 at 12:43:37AM +0200, E. Prom wrote: > > I try to use $tunnel with $smtp_url, but can't manage to do it. > > > > I don't trust my wifi Internet connection, so I want my mail to pass > > through a ssh tunnel to a server I own, before reaching the smtp > > server. > > > > ME ---(smtp inside ssh)---> my_server ---(smtp)---> smtp_server. > > To solve very similar problem (access to many remote hosts through > small number of ssh-able ones) I use iptables' MARK, REDIRECT, > transocks and ssh's embedded SOCKS server (-D). > [...]
Thanks for your conf, it's very interesting. Unfortunately, I can't change the firewall rules on the server, and I'd prefer something a little simpler :)