How team254/cheesy-mail works
cheesy-mail receives SMTP mail, validates and parses it, checks sender/list permissions, deduplicates messages, distributes them through AWS SES, and supports blog, Slack, attachment, and reply-related behavior in the message model. The sampled code shows the SMTP-to-processing handoff, membership API calls, attachment handling, SES delivery, and blog posting; README and excerpts do not establish every integration’s exact wiring, so uncertain links are omitted or marked dashed.
Main entry points: mail_message.go Message workflow · main.go Service coordinator · smtp_server.go SMTP listener · smtp_client_session.go SMTP session
Components 14
Runtime and ingress
- Service coordinator
main.go - SMTP listener
smtp_server.go - SMTP session
smtp_client_session.go
Message processing
- Message workflow
mail_message.go - Deduplication cache
message_cache.go - Attachment storage
mail_message.go
Distribution and integrations
- AWS SES
- Blog service
- Slack service
- Reply handling
mail_message.go
Identity and configuration
- Membership API
user_api.go - Configuration and decrypt
config.go
Other components
- Mail sender
- NGINX proxy
Connections 16
- Service coordinator → Configuration and decrypt: loads settings
main.go - Service coordinator → SMTP listener: starts listener
main.go - Mail sender → SMTP listener: opens SMTP
smtp_server.go - SMTP listener → SMTP session: creates sessions
smtp_server.go - SMTP session → Message workflow: parses mail
smtp_client_session.go - SMTP session → Service coordinator: queues message
smtp_client_session.go - Service coordinator → Deduplication cache: checks duplicate
main.go - Service coordinator → Message workflow: processes message
main.go - Message workflow → Membership API: checks permissions
mail_message.go - Message workflow → Attachment storage: saves files
mail_message.go - Message workflow → AWS SES: sends email
mail_message.go - Message workflow → Blog service: posts message
mail_message.go - Message workflow → Slack service: posts notification
- Message workflow → Reply handling: handles replies
mail_message.go - SMTP listener → NGINX proxy: serves auth
smtp_server.go - Membership API → Configuration and decrypt: reads settings
user_api.go