Welcome! Log In Create A New Profile

Advanced

Mail Proxy for two domains nehind NAT

February 11, 2018 08:57PM
Hello,

I tried to setup NGiNX as a Mail Proxy for two domains behind NAT. Users will be diverted to the right server base on domain (eg./ user@domainA.com will be diverted to Server A and user@domainB.com will be diverted to Server B).

When I test the nginx.conf it gives me the following:

"nginx: [emerg] duplicate "0.0.0.0:143" address and port pair ..."

After some digging, I know that the listen directive need to have different address:port pair but reuseport option is not allow in mail context.

Is there a way to overcome or achieve that? Please Help! TIA!


Regards,
YSC
Subject Author Posted

Mail Proxy for two domains nehind NAT

entpneur February 11, 2018 08:57PM

Re: Mail Proxy for two domains nehind NAT

Maxim Dounin February 12, 2018 07:52AM

Re: Mail Proxy for two domains nehind NAT

entpneur February 21, 2018 04:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 185
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready