### fix: 40 aktualisiere SMTP-Port und erweitere Timeout-Parameter
- **.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:
+2
-1
@@ -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("----------------------------------------------------------")
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user