### fix: 40 aktualisiere SMTP-Port und erweitere Timeout-Parameter
All checks were successful
Build and Publish Docker Images / build-and-push (., backend/services/mail/Dockerfile, mail-service, mail-service) (push) Successful in 5m47s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Successful in 3m53s

- **.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.
This commit is contained in:
Stefan Mogeritsch 2026-04-23 20:14:41 +02:00
parent 03184aa951
commit 0aaa160b95
4 changed files with 8 additions and 4 deletions

2
.env
View File

@ -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

View File

@ -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("----------------------------------------------------------")

View File

@ -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}

View File

@ -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)
)