# Using nginx as load balanced for outgoing mail

**URL:** <https://www.ruby-forum.com/t/using-nginx-as-load-balanced-for-outgoing-mail/197506>\
**Category:** NGINX\
**Created:** [October 15, 2010, 11:14am UTC](https://www.ruby-forum.com/t/using-nginx-as-load-balanced-for-outgoing-mail/197506 "2010-10-15T11:14:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [October 15, 2010, 11:14am UTC](https://www.ruby-forum.com/t/using-nginx-as-load-balanced-for-outgoing-mail/197506/1 "2010-10-15T11:14:33Z")

</div>

Hi

Could you tell, please, is it reasonable (and is it possible at all) use  
nginx as load balanced for set of MTAs?

I would like to setup set of exim’s on several hosts. Client application  
will send mail to nginx, and latter will pass it to backends. It seems  
like DNS balancing won’t fit, because there is only application will  
send emails, and it may cache IP addresses.

If you know other solutions, you are welcome.

---

<div class="post-metadata">

**Author:** ![avsej](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f07891/32.png) [@avsej](https://www.ruby-forum.com/u/avsej)\
**Post date:** [October 18, 2010, 5:15am UTC](https://www.ruby-forum.com/t/using-nginx-as-load-balanced-for-outgoing-mail/197506/2 "2010-10-18T05:15:51Z")

</div>

Sergey Avseyev at 2010-10-15 17:14 wrote:

> If you know other solutions, you are welcome.

What about my Nginx\_tcp\_proxy\_module?

> **[GitHub - yaoweibin/nginx\_tcp\_proxy\_module: add the feature of tcp proxy with nginx, with...](https://github.com/yaoweibin/nginx_tcp_proxy_module)**
>
> add the feature of tcp proxy with nginx, with health check and status monitor

–

Weibin Y.
