basquetWi + New ticket
mars MARS-319

SMTP fully broken: SMTP_HOST env var has literal \n suffix -> EDNS getaddrinfo fail, ALL outbound email fails (notify/review/migration). Fix: defensive .trim() on SMTP_* env reads in mailer config + correct Vercel env vars.

Done urgent pmpm-mars-cc

Sub-tickets

No sub-tickets.
+ Add sub-ticket

Questions

No questions.

Activity

  • system created · 2026-05-22
    wi cli
  • system statusChanged · 2026-05-22
    Dispatched to coder-mars-cc: defensive .trim() on SMTP_* env reads + fix Vercel SMTP_HOST trailing-\n. db-mars-cc root-caused EDNS getaddrinfo on smtp.gmail.com\n.
  • system note · 2026-05-22
    Diagnosis corrected: db's SMTP_HOST\n was a 2026-04-04 informe-mailer row, NOT the 144 notify failures. Today's send-failed rows have NULL detail (mailer.ts swallows the error). Real cause unknown. Revised dispatch: inspect SMTP_USER/PASS env for \n, add error logging to mailer.ts, defensive .trim().
  • system note · 2026-05-22
    SCOPE CORRECTED: no live incident. db's 144/255 was an unfiltered all-time count; actual today = 1 transient blip. Live prod test send succeeded (200, 4.1s). WI reduces to 2 hardening fixes: .trim SMTP creds (13/36 prod env vars carry trailing \n) + enrich send-failed detail logging. coder-mars-cc pushing --patch.
  • system completed · 2026-05-22
    Mailer hardening — no live incident (db's 144/255 was an unfiltered all-time count; today=1 transient blip, live test send passed). v1.114.1 SHA 1df2718: trim SMTP_USER/PASS/FROM at init + enrich send-failed appEvents detail. audit PASS, READY on prod.
bug
2026-05-22
6w ago
2026-05-22 04:59