E-Mail reverse proxy with Openlitespeed. Possible?

#1
Hi, is reverse proxying mail traffic possible with openlitespeed?

setup:
(1) openlitespeed reverse proxy on 10.0.0.200 with the following setup:
--external app: [Type: Webserver] [Name: "WebiconMailServer25"] [address: 10.0.0.203:25]
--rewrite Rule:
rewriteCond %{SERVER_PORT} ^25$
RewriteRule ^/(.*)$ http://WebiconMailServer25/$1 [P,L]
--listeners on 10.0.0.200 are set up to listen on port 25,465,993, router port forwarding for these ports is set up to pass traffic on these ports to 10.0.0.200

---> the smae above rewrite and external app combo is also set up for ports 465 and 993 as well

(2) Backend mail client (iredmail using postfix) sitting on 10.0.0.203.

problem: that setup does not seem to work and mails are not delivered nor picked up. The mail client iredmail works as it all works if I route from my router directly to 10.0.0.203 (themail server) but not if I try to go via the reverse proxy. Testing connections from 10.0.0.200 --> 10.0.0.203 via "openssl s_client -connect 10.0.0.203:465 -starttls smtp" gives me a "Connected" fine. so connections seem to work fine in general between the 2 servers (reverse proxy and mail client).

am I missing something or is reverse proxying mail traffic with openlitespeed not possible?
 

Cold-Egg

Administrator
#2
Assume you have the correct setup, but I don't think email works that way, maybe it uses a protocol other than HTTP/HTTPS, but I am not sure. Maybe other people in this forum can provide some other ideas.
 
#3
It uses SMTP and IMAP protokols but all that Litespeed has to do is take all traffic coming in on ports 25,465,993 according to the above rewrite rules and pass them through to the backend Iredmail server that can process these protocols.
 
Top