|
First I make sure my pop3 server is still accessible on the standard pop3 port.
monkey# telnet mail.monkeysinc.org 110
Trying 127.0.0.1...
Connected to mail.monkeysinc.org.
Escape character is '^]'.
+OK Qpopper (version 4.0.3) at mail.monkeysinc.org starting.
user jimmy
+OK Password required for jimmy.
pass jimmy
+OK jimmy has 0 visible messages (0 hidden) in 0 octets.
list
+OK 0 visible messages (0 octets)
.
quit
+OK Pop server at mail.monkeysinc.org signing off.
Connection closed by foreign host.
OK everything looks like it's working ok, now let's try connecting on the pop3s port.
monkey# telnet mail.monkeysinc.org 995
Trying 127.0.0.1...
Connected to mail.monkeysinc.org.
Escape character is '^]'.
user jimmy
Connection closed by foreign host.
Dropped connection! Of course, I have to tunnel the client connection through stunnel
as well. stunnel can run as a daemon, redirecting incoming connections to a server
running under stunnel. To start the stunnel daemon I'll do the following.
monkey# stunnel -c -d localhost:110 -r mail.monkeysinc.org:995
Now any connections coming in on port 110 of localhost will be redirected to
mail.monkeysinc.org on port 995 with stunnel doing all the talking on both
ends, keeping the conversation secure.
Let's try connecting again, but this time to port 110 on localhost.
monkey# telnet localhost 110
Trying 127.0.0.1...
Connected to mail.monkeysinc.org.
Escape character is '^]'.
+OK Qpopper (version 4.0.3) at mail.monkeysinc.org starting.
user jimmy
+OK Password required for jimmy.
pass jimmy
+OK jimmy has 0 visible messages (0 hidden) in 0 octets.
list
+OK 0 visible messages (0 octets)
.
quit
+OK Pop server at mail.monkeysinc.org signing off.
Connection closed by foreign host.
Hey! That's great. Now any pop3 clients running on that box can connect securely
to my pop3 server. I just change the pop3 server addresses in the configuration
to connect to "localhost" instead of "mail.monkeysinc.org".
Some mail clients have native support for SSL connections, like Microsoft's
Outlook Express. Just look under the Account Properties -> Advanced tab and check
the "Use SSL" box under the pop3 port setting.
|