Environment
- YugabyteDB Anywhere - All Versions
Issue
When setting up Health Check alerts on YBA using a custom SMTP server, the user sees an error pop-up in the YBA UI: Error Sending Notification:
Error sending email for alert Alert Channel Failed: exception reading response
This error can indicate that the SMTP server is incorrectly configured, or that the YBA Platform node does not have the appropriate permissions to connect to the SMTP server.
Resolution
Overview
The steps below test the SMTP server to confirm that it can send an email successfully.
- If the steps below produce an error, the user should contact his or her internal infrastructure team to verify the SMTP server setup
- If the steps below are successful, and the user receives an email in his or her inbox, create a ticket with YB Support to investigate the issue from the perspective of YBA
Steps
1. Gather Information
In the YBA UI, retrieve the following values from the Admin > Alert Configurations > Health
page
- Email From
- SMTP Server
- SMTP Port
You will also need the following:
- An email address that can receive mail for this test. Likely this is your own work email (below, I call this
user_email
)
2. Send Test Email from YBA Platform CLI
On the CLI of the YBA Platform node, run this command: If successful, you should see an email in the inbox of <user_email>
nc <SMTP_Server> <SMTP_Port> << EOF
HELO <root_domain_of_SMTP_Server>
MAIL FROM: <Email_From>
RCPT TO: <user_email>
DATA
Now we know that the SMTP server can send email
.
QUIT
EOF
Assessing Results
- If the test produces an error, user should contact your internal infrastructure team to verify the SMTP server setup
- If the steps are successful, and you do receive an email, create a ticket with YB Support to investigate the issue from the perspective of YBA
Comments
0 comments
Please sign in to leave a comment.