stunnel: SSL-to-SSL? (for smtp/imap)

Posted by nonot1 on Server Fault See other posts from Server Fault or by nonot1
Published on 2011-03-16T03:43:12Z Indexed on 2011/03/16 8:11 UTC
Read the original article Hit count: 296

Hello,

How can I configure stunnel to accpet SSL connections, and connect then to an SSL port on a different server?

Here is my setup:

Our ISP's server, "Mail Server", supports smtp/imap over SSL. (Not starttls. Just over ssl.)

But, I have a bunch of client machines that will only trust a specific, internal, root certificate. Thus, they can not connect to "Mail Server".

For these client machines, I'd like to make a dedicated "Mail Tunnel" host that uses stunnel to listen with an in-house signed SSL certificate, and just forward data to "Mail Server" using a 2nd SSL connection.

Can this be done?

What would be the specific steps for Ubuntu Server 10.10? (I'm not too familiar with persistent service configuration.)

Thank you

© Server Fault or respective owner

Related posts about ubuntu

Related posts about ssl