Re: Mail Proxy for two domains nehind NAT

2018-02-21 Thread entpneur
Thanks Maxim, how should I put all in one server block because I thought the logic will be as follow: mail { auth_http127.0.0.1/auth.php; imap_capabilities"IMAP4rev1" "UIDPLUS"; server { listen 0.0.0.0:143;

Mail Proxy for two domains nehind NAT

2018-02-11 Thread entpneur
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./ u...@domaina.com will be diverted to Server A and u...@domainb.com will be diverted to Server B). When I test the nginx.conf it gives me the following: "ngin