From 82e50d5dcbbf88bb3b2dc8909ebb7cf12e3b185b Mon Sep 17 00:00:00 2001 From: f-s-h Date: Fri, 17 Jul 2026 13:26:51 +0200 Subject: [PATCH] fix: disable actuator mail health check to stop gmail login throttling Actuator's MailHealthIndicator opened a live SMTP connection to Gmail on every /actuator/health hit, which readiness/liveness probes poll every 10-20s, tripping Gmail's login-attempt rate limit. Co-Authored-By: Claude Sonnet 5 --- .../spring-letter/src/main/resources/application.properties | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/spring-letter/src/main/resources/application.properties b/services/spring-letter/src/main/resources/application.properties index 36e2f9e5..ecd8d77a 100644 --- a/services/spring-letter/src/main/resources/application.properties +++ b/services/spring-letter/src/main/resources/application.properties @@ -16,3 +16,5 @@ spring.mail.username=${MAIL_USERNAME:} spring.mail.password=${MAIL_PASSWORD:} spring.mail.properties.mail.smtp.auth=true spring.mail.properties.mail.smtp.starttls.enable=true + +management.health.mail.enabled=false