v0.89.0: app-email plaintext-only listener (:2526) + split-From mapping
Gap 1: third shim listener :2526, plaintext, does NOT advertise STARTTLS (TLSConfig nil) — for opportunistic-STARTTLS clients with no cert-skip (cal.com, nextcloud). Gap 2: SMTPMapping tls_mode (picks port 2525/2526/2465) + from_domain_var (split local-part + domain for nextcloud's MAIL_FROM_ADDRESS/MAIL_DOMAIN). Default keeps existing apps on 2525. Hub untouched. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -249,9 +249,10 @@ func main() {
|
||||
var mailShim *mailrelay.Lifecycle
|
||||
if cfg.Hub.URL != "" && cfg.Hub.APIKey != "" && cfg.MailRelay.HardEnabled() {
|
||||
mailShim = mailrelay.NewLifecycle(mailrelay.Options{
|
||||
PlainAddr: cfg.MailRelay.PlainListen,
|
||||
TLSAddr: cfg.MailRelay.TLSListen,
|
||||
ServiceName: cfg.MailRelay.ShimHost,
|
||||
PlainAddr: cfg.MailRelay.PlainListen,
|
||||
TLSAddr: cfg.MailRelay.TLSListen,
|
||||
PlainNoTLSAddr: cfg.MailRelay.PlainNoTLSListen,
|
||||
ServiceName: cfg.MailRelay.ShimHost,
|
||||
Policy: mailrelay.NewPolicy(cfg.MailRelay.FromDomains),
|
||||
Forwarder: mailrelay.NewHubForwarder(cfg.Hub.URL, cfg.Hub.APIKey),
|
||||
Logger: logger,
|
||||
|
||||
Reference in New Issue
Block a user