Email channel trusts a spoofable From on a hand-rolled SMTP listener #374

Closed
opened 2026-10-27 13:36:04 +00:00 by sam · 0 comments
Owner

Goal

The email channel extension (archipelago channels/email) accepts only authenticated mail from allowed senders, built on go-imap and go-smtp instead of a hand-written SMTP server.

Evidence

channels/email/main.go runs its own SMTP listener and uses the From address as SenderID; the gateway treats email senders as people (carriesPersonIdentity), so anyone reaching the port impersonates any user.

Stop when

[ ] Inbound polled from a mailbox with go-imap v2; no listening port.
[ ] Only allowlisted senders whose Authentication-Results show DKIM or SPF pass are routed.
[ ] Replies sent with go-smtp.

Close reason

archipelago c4f9c35: go-imap/go-smtp, allowlist + provider DMARC/DKIM check


Imported from beads archie-core-mqti.14 · GitHub #1390 · type bug · priority P0 · created 2026-10-05 · closed 2026-10-05

## Goal The email channel extension (archipelago channels/email) accepts only authenticated mail from allowed senders, built on go-imap and go-smtp instead of a hand-written SMTP server. ## Evidence channels/email/main.go runs its own SMTP listener and uses the From address as SenderID; the gateway treats email senders as people (carriesPersonIdentity), so anyone reaching the port impersonates any user. ## Stop when [ ] Inbound polled from a mailbox with go-imap v2; no listening port. [ ] Only allowlisted senders whose Authentication-Results show DKIM or SPF pass are routed. [ ] Replies sent with go-smtp. ### Close reason archipelago c4f9c35: go-imap/go-smtp, allowlist + provider DMARC/DKIM check --- _Imported from beads `archie-core-mqti.14` · GitHub #1390 · type bug · priority P0 · created 2026-10-05 · closed 2026-10-05_
sam added the criticalbug labels 2026-10-27 13:36:04 +00:00
sam self-assigned this 2026-10-27 13:36:04 +00:00
sam closed this issue 2026-10-27 13:36:04 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#374