Interview Prep/Monitoring & Observability/Alerting and Alertmanager

Email receiver fails with `*smtp.plainAuth auth: unencrypted connection`

IntermediateTroubleshootingAlerting and Alertmanager
Answer

Likely causes → SMTP PLAIN auth over a non-TLS connection is refused by Go's client.

Diagnose → Check smarthost port and require_tls.

Fix → Use port 587 with STARTTLS (require_tls: true, default) or 465 with TLS. For an internal relay without auth, remove auth_username/auth_password.

Prevent → Prefer API-based receivers (SES via webhook, Slack, PagerDuty) over raw SMTP.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Alerting and Alertmanager