On Mon, 12 Oct 2020 21:19:38 -0400 Viktor Dukhovni <postfix-us...@dukhovni.org> 
wrote:

> On Mon, Oct 12, 2020 at 08:09:45PM -0500, Ranjan Maitra wrote:
>
> > My apologies: were there any suggestions regarding what i should do?
>
> Find out more about the VPN.  Nobody on this list can do that.  Does it
> support port forwarding (learn that means), and will it allow forwarding
> of the internal SMTP server's IP:port to your client machine.

Thank you very much, the SMTP port of the host is the standard 25. Is there a 
commandline way to quickly find out if the port is allowed to be forwarded? 
Otherwise, of course, I will wait for my IT staff to respond.

> In that case all you need to do is set relayhost to the
> forwarded SSH port:
>
>     relayhost = [127.0.0.1]:<portnumber>
>
> but that requires your SSH VPN to support port forwarding from the
> remote network to your machine, which it may restrict for security
> reasons.  You'd then need to run "ssh" with the relevant port
> forwarded:
>
>     localport=12345 # Forwarded SMTP service
>     relayhost=smtp.example.com
>     login=yourloginname
>     sshvpnport=22 # Perhaps different in your case
>     ssh -Nn -o "ExitOnForwardFailure yes" -l $login -p $vpnport \
>         -L"$localport:$relayhost:25" sshvpn.example.com
>
> --

I know my ssh port. The localport, I guess, is for my home machine. Where do I 
get it from? Also, where do I put the above?

I appreciate that I have not provided the most complete information for you to 
help, and so I thank you for making the time and the effort.

Many thanks again, and best wishes,
Ranjan

Reply via email to