having this situation:
In a local network two completely different / independent mailservers exist for completey different maildomains. There is just one public IP address available.
Now it should be possible to get IMAP access from "the outside" to both mailservers. Therefore just the default IMAP Port 143 should be forwarded which of course just can be done to one single server in the local network. So this single server has to forward IMAP traffic to the correct mailserver based on the maildomain (or IMAP Host set in the MailClient? Or EMail Address?)
How could this be realized? I think of some sort of "Reverse Proxy" for IMAP in a similar way for what is possible for Apache concerning HTTP ("ProxyPass" / "ProxyPassReverse").
Thx in advance for any hint!
T0mc@