From 0aaa160b95948966a27c8d74cf42143e4f78411e Mon Sep 17 00:00:00 2001 From: StefanMoCoAt Date: Thu, 23 Apr 2026 20:14:41 +0200 Subject: [PATCH] ### fix: `40` aktualisiere SMTP-Port und erweitere Timeout-Parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - **.env:** SMTP-Port auf `587` geändert. - **application.yaml:** Timeout-Parameter (`connectiontimeout`, `timeout`, `writetimeout`) hinzugefügt. - **MailServiceApplication:** Logging um SMTP-Timeout ergänzt. - **WebMainScreen:** Versionsmarker auf `v2026-04-23.40 - SMTP PORT FORCE` aktualisiert. --- .env | 2 +- .../kotlin/at/mocode/mail/service/MailServiceApplication.kt | 3 ++- .../mail/mail-service/src/main/resources/application.yaml | 5 ++++- .../kotlin/at/mocode/frontend/shell/web/WebMainScreen.kt | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.env b/.env index a0a191f4..ec5500bd 100644 --- a/.env +++ b/.env @@ -175,7 +175,7 @@ MAIL_SMTP_AUTH=true MAIL_SMTP_STARTTLS=true SPRING_MAIL_HOST=smtp.world4you.com -SPRING_MAIL_PORT=1025 +SPRING_MAIL_PORT=587 SPRING_MAIL_USERNAME=online-nennen@mo-code.at SPRING_MAIL_PASSWORD=Mogi#2reiten SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH=false diff --git a/backend/services/mail/mail-service/src/main/kotlin/at/mocode/mail/service/MailServiceApplication.kt b/backend/services/mail/mail-service/src/main/kotlin/at/mocode/mail/service/MailServiceApplication.kt index 971c1dca..7c95a673 100644 --- a/backend/services/mail/mail-service/src/main/kotlin/at/mocode/mail/service/MailServiceApplication.kt +++ b/backend/services/mail/mail-service/src/main/kotlin/at/mocode/mail/service/MailServiceApplication.kt @@ -37,6 +37,7 @@ class MailServiceApplication(private val env: Environment) { val mailPort = env.getProperty("spring.mail.port") val mailUser = env.getProperty("spring.mail.username") val mailPass = env.getProperty("spring.mail.password")?.take(3) + "***" + val connTimeout = env.getProperty("spring.mail.properties.mail.smtp.connectiontimeout") val envHost = System.getenv("SPRING_MAIL_HOST") val envPort = System.getenv("SPRING_MAIL_PORT") @@ -44,7 +45,7 @@ class MailServiceApplication(private val env: Environment) { log.info("----------------------------------------------------------") log.info("Application '{}' is running!", appName) log.info("Spring Management Port: {}", springPort) - log.info("SMTP Config (Resolved): host={}, port={}, user={}, pass={}", mailHost, mailPort, mailUser, mailPass) + log.info("SMTP Config (Resolved): host={}, port={}, user={}, pass={}, timeout={}", mailHost, mailPort, mailUser, mailPass, connTimeout) log.info("SMTP Config (Raw Env): host={}, port={}, pass={}", envHost, envPort, System.getenv("SPRING_MAIL_PASSWORD")?.take(3) + "***") log.info("Profiles: {}", env.activeProfiles.joinToString(", ")) log.info("----------------------------------------------------------") diff --git a/backend/services/mail/mail-service/src/main/resources/application.yaml b/backend/services/mail/mail-service/src/main/resources/application.yaml index fd9fdc6a..2086572a 100644 --- a/backend/services/mail/mail-service/src/main/resources/application.yaml +++ b/backend/services/mail/mail-service/src/main/resources/application.yaml @@ -12,13 +12,16 @@ spring: show-sql: true mail: host: ${SPRING_MAIL_HOST:smtp.world4you.com} - port: ${SPRING_MAIL_PORT:587} + port: 587 username: ${SPRING_MAIL_USERNAME:online-nennen@mo-code.at} password: ${SPRING_MAIL_PASSWORD:Mogi#2reiten} properties: mail: smtp: auth: ${SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH:true} + connectiontimeout: 5000 + timeout: 5000 + writetimeout: 5000 starttls: enable: ${SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLE:true} required: ${SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_REQUIRED:true} diff --git a/frontend/shells/meldestelle-web/src/wasmJsMain/kotlin/at/mocode/frontend/shell/web/WebMainScreen.kt b/frontend/shells/meldestelle-web/src/wasmJsMain/kotlin/at/mocode/frontend/shell/web/WebMainScreen.kt index 3ca773f7..9030b898 100644 --- a/frontend/shells/meldestelle-web/src/wasmJsMain/kotlin/at/mocode/frontend/shell/web/WebMainScreen.kt +++ b/frontend/shells/meldestelle-web/src/wasmJsMain/kotlin/at/mocode/frontend/shell/web/WebMainScreen.kt @@ -130,7 +130,7 @@ fun MainAppContent() { // Dezentraler Versions-Marker in der unteren rechten Ecke Box(modifier = Modifier.fillMaxSize().padding(8.dp), contentAlignment = Alignment.BottomEnd) { Text( - text = "v2026-04-23.39 - FINAL SMTP & UI SYNC", + text = "v2026-04-23.40 - SMTP PORT FORCE", style = MaterialTheme.typography.labelSmall, color = Color.LightGray.copy(alpha = 0.5f) )