# Connect to pop-server via proxy

**URL:** <https://www.ruby-forum.com/t/connect-to-pop-server-via-proxy/178615>\
**Category:** Ruby\
**Created:** [November 8, 2009, 1:53am UTC](https://www.ruby-forum.com/t/connect-to-pop-server-via-proxy/178615 "2009-11-08T01:53:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![born\_in\_USSR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/2bfe46/32.png) [@born\_in\_USSR](https://www.ruby-forum.com/u/born_in_USSR)\
**Post date:** [November 8, 2009, 1:53am UTC](https://www.ruby-forum.com/t/connect-to-pop-server-via-proxy/178615/1 "2009-11-08T01:53:13Z")

</div>

Is it possible to connect to pop3-server via proxy and how if it’s  
possible?

---

<div class="post-metadata">

**Author:** ![born\_in\_USSR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/2bfe46/32.png) [@born\_in\_USSR](https://www.ruby-forum.com/u/born_in_USSR)\
**Post date:** [November 9, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/connect-to-pop-server-via-proxy/178615/2 "2009-11-09T14:37:50Z")

</div>

born in USSR wrote:

> Is it possible to connect to pop3-server via proxy and how if it’s  
> possible?

What sort of a proxy?

If it’s SOCKS, there are various SOCKS client implementations. Ruby  
itself includes SOCKSSocket, but unfortunately is a build-time option  
when you build Ruby because it depends on an external C library.

I came across several pure ruby SOCKS implementations: net/ssh has one,  
and there’s [http://rtokiwa.s55.xrea.com/wiki/index.php?SOCKSSocket](http://rtokiwa.s55.xrea.com/wiki/index.php?SOCKSSocket).  
There may be others. You can probably plug these into ruby’s existing  
net/pop3.rb without too much difficulty.

If it’s an application-level proxy, then maybe you just need to make a  
normal pop3 login but pass a specially-formatted username to indicate  
where to connect to.
