Skip to content

fix: disable actuator mail health check to stop gmail login throttling - #135

Merged
f-s-h merged 1 commit into
mainfrom
bug/fix-smtp-limit
Jul 17, 2026
Merged

fix: disable actuator mail health check to stop gmail login throttling#135
f-s-h merged 1 commit into
mainfrom
bug/fix-smtp-limit

Conversation

@f-s-h

@f-s-h f-s-h commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

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.

Summary by CodeRabbit

  • Bug Fixes
    • Improved health monitoring behavior by excluding mail service checks from the application health status.

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 <noreply@anthropic.com>
@f-s-h
f-s-h requested a review from raphael-frank July 17, 2026 11:29
@f-s-h f-s-h self-assigned this Jul 17, 2026
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: ae7ef992-1244-4383-95d7-4eb7abca9f4f

📥 Commits

Reviewing files that changed from the base of the PR and between 23630c0 and 82e50d5.

📒 Files selected for processing (1)
  • services/spring-letter/src/main/resources/application.properties

📝 Walkthrough

Walkthrough

The Spring Letter service disables the Spring Boot actuator mail health indicator through a new application.properties setting.

Changes

Mail health configuration

Layer / File(s) Summary
Disable mail health indicator
services/spring-letter/src/main/resources/application.properties
Adds management.health.mail.enabled=false to disable mail health reporting.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: raphael-frank

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: disabling the Actuator mail health check to avoid Gmail login throttling.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bug/fix-smtp-limit

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@f-s-h
f-s-h removed the request for review from raphael-frank July 17, 2026 12:51
@f-s-h
f-s-h merged commit 8e069a9 into main Jul 17, 2026
18 checks passed
@f-s-h
f-s-h deleted the bug/fix-smtp-limit branch July 17, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant