add docker setup

This commit is contained in:
2026-08-15 06:22:02 +01:00
parent 892f366a16
commit 310700407e
11 changed files with 410 additions and 19 deletions
+4 -4
View File
@@ -138,8 +138,8 @@ func main() {
var smtpRunning atomic.Bool
runSMTP := func() {
smtpPort := cfg.Section("Server").Key("SMTP_PORT").MustInt(4025)
smtpTLSPort := cfg.Section("Server").Key("SMTP_TLS_PORT").MustInt(40465)
smtpPort := cfg.Section("Server").Key("SMTP_PORT").MustInt(25)
smtpTLSPort := cfg.Section("Server").Key("SMTP_TLS_PORT").MustInt(465)
banner := smtpserver.ResolveBanner(cfg, heloHostname)
// Bind IPv4-only ("0.0.0.0"), matching both listeners in server_runner.py
@@ -175,8 +175,8 @@ func main() {
}
runIMAP := func() {
imapPort := cfg.Section("IMAP").Key("IMAP_PORT").MustInt(1143)
imapTLSPort := cfg.Section("IMAP").Key("IMAP_TLS_PORT").MustInt(1993)
imapPort := cfg.Section("IMAP").Key("IMAP_PORT").MustInt(143)
imapTLSPort := cfg.Section("IMAP").Key("IMAP_TLS_PORT").MustInt(993)
plainServer := imapserver.NewPlainServer(imapBackend)
tlsServer := imapserver.NewTLSServer(imapBackend, tlsConfig)