[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



That's what I do. Here's a snippet from my .ssh/config:

--- cut here ---
#
Host host-tunnel
HostName hosting.example.com
User myid
KeepAlive yes
LocalForward 42143 localhost:143
LocalForward 42110 localhost:110
LocalForward 42025 localhost:25
--- cut here ---

Then I set up my mail client to pop/imap from localhost:[42110|42143], and set
my mail server to localhost 42025. The high port numbers are arbitrary. I just
prefix the normal numbers with '42', which is easy for me to remember.

The second part of the forward lines will be resolved on the *remote* host, no
your localhost. So if you are ssh'ing into a corporate net, you can use local
names.


The other option, is to set your home mail server to use a smart-relay, i.e.
forward mail to your ISP's mail server.


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="01310" href="msg01310.html">[ale] Quick tutorial on ssh port forwarding my mail?</a></strong>
<ul><li><em>From:</em> scherrey at proteus-tech.com (Benjamin Scherrey)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg01323.html">[ale] DSPAM</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg01325.html">[ale] DSPAM</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg01320.html">[ale] Quick tutorial on ssh port forwarding my mail?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg01312.html">[ale] Sieve filter examples?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#01324"><strong>Date</strong></a></li>
<li><a href="threads.html#01324"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>