# Virtual hosts with smtp

**URL:** <https://www.ruby-forum.com/t/virtual-hosts-with-smtp/191465>\
**Category:** NGINX\
**Created:** [July 13, 2010, 6:04am UTC](https://www.ruby-forum.com/t/virtual-hosts-with-smtp/191465 "2010-07-13T06:04:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SSSSSSSSSSSSS\_SS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a3d4f5/32.png) [@SSSSSSSSSSSSS\_SS](https://www.ruby-forum.com/u/SSSSSSSSSSSSS_SS)\
**Post date:** [July 13, 2010, 6:04am UTC](https://www.ruby-forum.com/t/virtual-hosts-with-smtp/191465/1 "2010-07-13T06:04:21Z")

</div>

Hi,

I’m very new to Nginx mail proxy feature.

I have two domains that I want to be served from the same machine but  
different mail server application (both SMTP and POP3), running on  
different ports to avoid conflicts.

Is this a valid use case for Nginx? If yes, can anyone share a Nginx  
configuration script to support that?

Help is much appreciated!

–br
