Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Health Monitor email messages and TLS #2513

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

ystros
Copy link
Contributor

@ystros ystros commented Apr 19, 2024

What is this change about?

Previously, the EventMachine SMTP client was formatting the headers and body of emails sent by Health Monitor for us. When this was replaced with Net::SMTP, the headers and body were improperly formatted and thus emails were not delivered.

Additionally, this restores the STARTTLS behavior to how it worked when we used EventMachine; setting hm.email.tls to true forces a STARTTLS session, while setting it to false does not attempt a STARTTLS session even if the server supports it.

What tests have you run against this PR?

  • Ran unit tests
  • Applied patch to a live director to ensure emails were being sent out in both TLS and non-TLS mode.

Previously, the EventMachine SMTP client was formatting the headers and
body of emails sent by Health Monitor for us. When this was replaced
with Net::SMTP, the headers and body were improperly formatted and thus
emails were not delivered.

Additionally, this restores the STARTTLS behavior to how it worked when
we used EventMachine; setting hm.email.tls to true forces a STARTTLS
session, while setting it to false does not attempt a STARTTLS session
even if the server supports it.

Signed-off-by: Aram Price <aram.price@broadcom.com>
Copy link
Member

@jpalermo jpalermo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jpalermo jpalermo merged commit 79dc618 into main Apr 19, 2024
4 checks passed
@jpalermo jpalermo deleted the fix-health-monitor-email-plugin branch April 19, 2024 21:36
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.

2 participants