agentbbs/internal/mailbox
Anthony Ettinger 55d517feb4 fix(mailbox): verify SMTP STARTTLS against the mail host, not the dial IP
AgentMail compose/send failed with 'cannot validate certificate for 127.0.0.1
because it doesn't contain any IP SANs': the sender dialed the local relay at
127.0.0.1:25 and net/smtp pinned the TLS ServerName to the dial host, but the
relay's cert is for mail.<host>. Reimplement smtpSend (mirrors net/smtp.SendMail)
with an overridable IMAPConfig.SMTPServerName; default it to the mail host
(AGENTBBS_MAIL_SMTP_SERVERNAME). Now we dial the loopback for relay permission
yet verify the real hostname cert — no /etc/hosts hack. setup.sh upserts the new
var. Tested against a fake SMTP server (full MAIL/RCPT/DATA flow).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 15:54:30 +00:00
..
bot.go fix: case-sensitive flag comparison in AgentMail bot (#35) 2026-06-16 03:20:17 -07:00
client.go Feat/mail all members (#55) 2026-06-23 03:38:31 -07:00
imap.go fix(mailbox): verify SMTP STARTTLS against the mail host, not the dial IP 2026-06-23 15:54:30 +00:00
mailbox_test.go feat(mailbox): compose & reply in the AgentMail TUI 2026-06-23 14:09:18 +00:00
memory.go Add AgentMail: paid-member mailbox reader (TUI + bot mode) on the BBS 2026-06-14 16:49:04 +00:00
reader_tui.go feat(mailbox): compose & reply in the AgentMail TUI 2026-06-23 14:09:18 +00:00
smtp.go fix(mailbox): verify SMTP STARTTLS against the mail host, not the dial IP 2026-06-23 15:54:30 +00:00
smtp_test.go fix(mailbox): verify SMTP STARTTLS against the mail host, not the dial IP 2026-06-23 15:54:30 +00:00
transport.go Add AgentMail: paid-member mailbox reader (TUI + bot mode) on the BBS 2026-06-14 16:49:04 +00:00
types.go Feat/mail all members (#55) 2026-06-23 03:38:31 -07:00