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.
More on Alerting and Alertmanager
An alert shows `Pending` in Prometheus but never goes to `Firing`BeginnerAn alert is `Firing` in Prometheus but nothing reaches AlertmanagerIntermediateAlertmanager shows the alert but Slack receives nothingBeginnerAlertmanager logs `notify retry canceled due to unrecoverable error after 1 attempts: channel_not_found`IntermediateAlertmanager logs `unexpected status code 404: no_service` / `invalid_token` for SlackBeginnerAlertmanager fails to load config: `yaml: unmarshal errors: field matchers not found in type config.plain`Intermediate