# Can Mail modules provides simple load-balancing (round-robin and client IP) across backend servers?

**URL:** <https://www.ruby-forum.com/t/can-mail-modules-provides-simple-load-balancing-round-robin-and-client-ip-across-backend-servers/214075>\
**Category:** NGINX\
**Created:** [November 21, 2011, 9:33am UTC](https://www.ruby-forum.com/t/can-mail-modules-provides-simple-load-balancing-round-robin-and-client-ip-across-backend-servers/214075 "2011-11-21T09:33:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [November 21, 2011, 9:33am UTC](https://www.ruby-forum.com/t/can-mail-modules-provides-simple-load-balancing-round-robin-and-client-ip-across-backend-servers/214075/1 "2011-11-21T09:33:44Z")

</div>

Can Mail modules provides simple load-balancing (round-robin and  
client IP) across backend servers Like http HttpUpstreamModule?

upstream backend {  
ip\_hash;  
server [backend1.example.com](http://backend1.example.com);  
server [backend2.example.com](http://backend2.example.com);  
server [backend3.example.com](http://backend3.example.com) down;  
server [backend4.example.com](http://backend4.example.com);  
}

mail

{  
…  
proxy\_pass backend;  
…  
}
