Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

SMTP relay in docker

MrEdMrEd Member
edited December 2025 in Help

Hi,

We have an interesting case. In company we have set up beszel to monitor our servers. Internally we have exchange server for development purposes that is able to send emails to internal users. The problem is that exchange does not provide TLS, and beszel can only send mails via TLS enabled SMTP. Does anyone know a simple relay dockerized solution that would basically proxy SMTP by enabling TLS?

I have found exim4 based docker image
https://github.com/BytemarkHosting/docker-smtp
But it also doesn't provide TLS.

Or is my only hope to take this one as an example and create my own docker image by configuring exim4 to enable TLS?

Comments

  • Maybe try https://hub.docker.com/r/bleala/postfix, can generate self sign cert and etc.

    Thanked by 1MrEd
  • @qeba said:
    Maybe try https://hub.docker.com/r/bleala/postfix, can generate self sign cert and etc.

    Thanks! Will definitelly look into this!

  • tomletomle Member, LIR

    stunnel could be an option?

  • nginx can proxy SMTP. nginx has a docker image if you really really really need one. nginx can terminate TLS.

    Thanked by 1MrEd
  • @nikio said:
    nginx can proxy SMTP. nginx has a docker image if you really really really need one. nginx can terminate TLS.

    Thanks! That was the simplest solution.

    AND we already had wildcard certificate on the nginx in the compose file, so adding alias mail.organization.name.com for nginx and configuring Beszel to use the hostname worked fine!

  • @MrEd said: Does anyone know a simple relay dockerized solution that would basically proxy SMTP by enabling TLS?

    You are looking for something that can proxy TCP traffic other than HTTP traffic.

    Nginx can do it if you compile it with ngx_stream_proxy and ngx_stream_ssl module. Many Linux repos doesn't bundle those modules in Nginx by default.

    HAProxy and Traefik can both do it out of the box if I recall correctly.

  • @dedipromo said:

    @MrEd said: Does anyone know a simple relay dockerized solution that would basically proxy SMTP by enabling TLS?

    You are looking for something that can proxy TCP traffic other than HTTP traffic.

    Nginx can do it if you compile it with ngx_stream_proxy and ngx_stream_ssl module. Many Linux repos doesn't bundle those modules in Nginx by default.

    HAProxy and Traefik can both do it out of the box if I recall correctly.

    We are alrwady using nginx docker container and it has stream proxy enabled.

Sign In or Register to comment.