Quote:
Originally posted by herron
ssh -v -N -L 25:SERVERIP:25 myuserid@SERVERIP
|
Your command should be
ssh -L 25:localhost:25 myuserid@SERVERIP
you are creating a socket 25 on local host to forward it to remote serverip on 25.
After this debug like
telnet localhost 25
telnet serverip 25
you should see smtp welcome message.
It should be worth noting that your connection is encrypted between home and office but the mail going out from your sendmail would be unencrypted.
[ Ideally you should build TLS support on your sendmail and authenticate people who want to relay through your sendmail ]
hope this helps.