I would like to know if I can configure DD-WRT router, that operates as the server's network gateway, so support different forwards based on hostname (other than port 80).
I've configured successfully Varnish and it's used to forward all requests to the backend web servers and also have the following port forwarding logic:
143, 25 (web) -> 143, 25 (192.168.1.10) 80 (web) -> 80 (192.168.1.11) ...
I would like to know if I can configure, as an additional rule, for a single domain, such as: if hostname is "domainX.com" then port 25 should go to another server, otherwise, all port 25 requests will go to the default mail server.
PS: If there's no efficient way, I'll setup a port forwarding and firewall dedicated server.