Re: [exim] Re^2: smtp through a ssh tunnel to exim4

Pàgina inicial
Delete this message
Reply to this message
Autor: Magnus Holmgren
Data:  
A: exim-users
Assumpte: Re: [exim] Re^2: smtp through a ssh tunnel to exim4
On Wednesday 14 March 2007 17:01, Easthope wrote:
> mh> How do you set up the tunnel?
> mh> Something like "ssh -L 1025:localhost:25 home.example.com"?
>
> SSH.StartForwarding peter@??? 1025:peasthope.yi.org:25 ~
> Also tried this.
> SSH.StartForwarding peter@??? 1025:localhost:25 ~
>
> Explanation from SSH.Tool written by Guenter Feldmann.
> "SSH.StartForwarding    user@remHost { locPort:destHost:destPort }  ~
>    StartForwarding establishes an encypted tunnel between the local
> host and
>    the remote host. At the remote host an unencrypted connection is
> made
>    to the destination port at the destination host (which may be
> different from
>    the remote host)."


localhost should work.

> SMTP uses port 25. What is 1025 doing here?


If you're tunneling *from* a unix-type OS as a normal user, you can't use
listen on port 25 since it's privileged. You of course have to tell your MUA
to use that port.

> mh> Do you get connection refused when you try to connect to
> the local end of the tunnel, or what happens?
>
> System.Log shows only this.
> --- SMTP
>
> MUA shows "no connnection".


Can SSH.Tool be told to give you some debug output so you can see in what end
the connection fails?

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)


"Exim is better at being younger, whereas sendmail is better for
Scrabble (50 point bonus for clearing your rack)" -- Dave Evans