[BE] Integrated alerting - Sending email using gmail fails
General
Escalation
General
Escalation
Description
How to test
None
How to document
None
Attachments
2
is cloned by
Smart Checklist
Activity
Show:

Zoriana Stefanyshyn November 22, 2021 at 9:15 AM
Verified on pmm-server-fb:PR-2146-41b4a40

Zoriana Stefanyshyn November 10, 2021 at 9:47 AM
Will be tested in scope of
Done
Details
Details
Assignee

Reporter

Priority
Needs QA
Yes
Fix versions
Story Points
1
Smart Checklist
Open Smart Checklist
Smart Checklist

Open Smart Checklist
Created November 8, 2021 at 4:16 PM
Updated March 6, 2024 at 1:56 AM
Resolved November 22, 2021 at 1:43 PM
Original report:
I configured the Communication to send email using gmail and I'm getting this error in the log:
msg="Notify attempt failed, will retry later" attempts=13 err="send MAIL command: 530 5.7.0 Must issue a STARTTLS command
first. c16sm3151674wrw.89 - gsmtp"
User Impact:
Users can't use Gmail or another SMTP service on the nonstandard port to send emails in Alerting.
Steps to reproduce:
Configure SMTP settings using 587 port
Emulate some Alert in PMM and try to use the email channel to receive notification about it
Actual result:
Notify attempt failed, will retry later" attempts=13 err="send MAIL command: 530 5.7.0 Must issue a STARTTLS command
first. c16sm3151674wrw.89 - gsmtp"
Expected result:
Email is sent
Solution:
Add an additional flag to require the SMTP TLS in the modal form where we configure the SMTP settings.