How to reverse proxy an unsecured smtp server?

I am using Mailu (with its TLS turned off) to have an unsecured smtp server on localhost:5870. I want to secure this via a Caddy reverse proxy. I saw some old caddyv1 topics that said use the TCP proxy, but nothing on v2.

Unfortunately that’s not possible with Caddy out of the box.

You can take a look at Project Conncept, which is a WIP sponsor-only (for now) plugin for Caddy that can do TCP proxying:

1 Like

Is there any other way of doing this until conncept matures? I’m ok with using nginx as well as caddy, but I don’t know how to integrate them.

This topic was automatically closed after 30 days. New replies are no longer allowed.