Search code examples
linuxputtytunnel

Putty tunnel: Relay access denied


I will try to connect I logged on locally (127.0.0.1) on Putty. Then I try to connect through the tunnel to the remote server.

I get a "Relay access denied" error. How can I solve it?


Solution

  • To get an SSH tunnel established:

    In PuTTY, on the configuration screen go to Connection > SSH > Tunnels. Set the source port to something like 2500, which is actually localhost:2500. Set Destination to mailserver.example.com:25 (SMTP port) for whatever is the hostname of your mail server.

    Connect over SSH, and you have now established a tunnel to port 25 on the destination host.

    On your local machine, telnet to your local port, and you are now talking to port 25 on the remote machine.

    telnet localhost 2500