I am using Mailrise (an SMTP server) for unencrypted communication on my local network on port 8025. I would like to use Mailrise as an SMTP server for a public domain, but I am unable to establish communication. For secure connections, I want to use Traefik with a certificate so that I don't have to implement another certificate in Mailrise.
I imagine that Traefik will take care of the encrypted connection, which will be relayed to Mailrise as plain text only. My idea:
[user:465] ==> [router:465] ==> [traefik:465 to :8025] --> [mailrise:8025]
I can't seem to make a connection and I really don't know what I'm doing wrong. I'm definitely missing something, but what?
send-mailmessage -from "admin@homelab.local" -to "telegram@mailrise.xyz" -subject "Windows Test" -body "Test message" -smtpserver mailrise.mydomain.com -port 465
or
send-mailmessage -from "admin@homelab.local" -to "telegram@mailrise.xyz" -subject "Windows Test" -body "Test message" -smtpserver mailrise.mydomain.com -port 465 -UseSsl
Error: net_io_connectionclosed.
Traefik log:
{"level":"error","error":"read tcp 172.20.0.4:465->192.168.10.50:53998: i/o timeout","time":"2024-05-31T07:13:35Z","message":"Error while Peeking first byte"}
My configuration (Traefik v3):
tcp:
routers:
mailrise-router:
entryPoints:
- mailsecure
rule: "HostSNI(`mailrise.mydomain.com`)"
service: mailrise-service
tls:
certResolver: cloudflare
services:
mailrise-service:
loadBalancer:
servers:
- address: 192.168.30.30:8085 # mailrise server
entryPoints:
mailsecure:
address: ":465"
Thanks for any ideas.