# Proxying non-ssl SMTP/POP to ssl SMTP/POP

**URL:** <https://www.ruby-forum.com/t/proxying-non-ssl-smtp-pop-to-ssl-smtp-pop/226765>\
**Category:** NGINX\
**Created:** [February 20, 2013, 6:02pm UTC](https://www.ruby-forum.com/t/proxying-non-ssl-smtp-pop-to-ssl-smtp-pop/226765 "2013-02-20T18:02:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![huynq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a183cd/32.png) [@huynq](https://www.ruby-forum.com/u/huynq)\
**Post date:** [February 20, 2013, 6:02pm UTC](https://www.ruby-forum.com/t/proxying-non-ssl-smtp-pop-to-ssl-smtp-pop/226765/1 "2013-02-20T18:02:30Z")

</div>

Hi everyone,  
I’m now using nginx in setting up a proxying mail system in my company.  
The  
model is as below:

Mail client \<=========\> Nginx proxy \<===========\> Mail server

The stream between mail client and nginx is non-ssl connection (includes  
smtp and pop3 stream), whereas the stream between nginx and mail server  
uses  
ssl. The reason I use this model is that: I want to create a neutral  
node  
that can modify the emails before being delivered to mail server or  
client.  
However, I’m still stuck on the configuration of nginx to implement this  
model. So if you have any idea about how to configure this system as  
well as  
it’s possibility with nginx, please help me.

I’m still a newbie to this field, so if this is a dump question, please  
forgive for my awkwardness.  
Thank you very much!

Btw: I also referenced to the question of kgoj at :  
[proxying SMTP+SSL to SSL-unaware mail server](http://forum.nginx.org/read.php?2,126528,126528#msg-126528). However, his  
model is contrasted with my model and I haven’t found any idea yet!

Posted at Nginx Forum:

> **[Proxying non-ssl SMTP/POP to ssl SMTP/POP](https://forum.nginx.org/read.php?2,236390,236390#msg-236390)**
>
> Hi everyone, I'm now using nginx in setting up a proxying mail system in my company. The model is as below: Mail client \<=========\> Nginx proxy \<===========\> Mail server The stream between mail client and nginx is non-ssl connection...

---

<div class="post-metadata">

**Author:** ![huynq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a183cd/32.png) [@huynq](https://www.ruby-forum.com/u/huynq)\
**Post date:** [February 22, 2013, 9:34am UTC](https://www.ruby-forum.com/t/proxying-non-ssl-smtp-pop-to-ssl-smtp-pop/226765/2 "2013-02-22T09:34:33Z")

</div>

Hello!

On Wed, Feb 20, 2013 at 12:02:04PM -0500, huynq wrote:

> However, I’m still stuck on the configuration of nginx to implement this  
> model. So if you have any idea about how to configure this system as well as  
> it’s possibility with nginx, please help me.

nginx doesn’t support talking to mail backends via ssl.

–  
Maxim D.

> **[F5 NGINX: Built for cloud-native apps. Ready for AI traffic.](https://www.f5.com/products/nginx)**
>
> Deliver modern applications with NGINX. Explore high-performance load balancing, API gateways, and web server solutions trusted by top global enterprises.
