[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Thu Apr 29 22:18:47 2004 -->
- <!--x-from-r13: efgbel-y ng eriryfgbar.pbz (Dboreg Egbel) -->
- <!--x-message-id: 20040429221727.5c9d70bb@media -->
- <!--x-reference: 200404291709.44594.scherrey@proteus-tech.com --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Quick tutorial on ssh port forwarding my mail? -->
- <li><em>date</em>: Thu Apr 29 22:18:47 2004</li>
- <li><em>from</em>: rstory-l at revelstone.com (Robert Story)</li>
- <li><em>in-reply-to</em>: <<a href="msg01310.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg01310.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] Quick tutorial on ssh port forwarding my mail?</li>
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>