Documentation
¶
Overview ¶
Package smtpd is the in-process SMTP listener. Receives RFC822 from any local sender, parses it with enmime, and hands the structured payload to the store.
Co-housed with the HTTP API in the same binary — no JSON-over-HTTP hop between SMTP ingest and persistence.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// Listen is the bind address; default "127.0.0.1:3535". Comma-
// separated host:port pairs spin up multiple listeners (used to
// bind both 127.0.0.1 and ::1 so clients that resolve "localhost"
// to ::1 — Node 17+, modern macOS — reach us without an explicit
// 127.0.0.1).
Listen string
// MaxMessageBytes caps a single DATA body. Default 25 MB.
MaxMessageBytes int64
Store *store.Store
// AfterInsert fires after a successful SMTP-driven Insert so the
// outer process can dispatch background jobs / live broadcasts.
// Not called when Insert fails.
AfterInsert func(msgID string)
// contains filtered or unexported fields
}
func (*Server) Addrs ¶
Addrs returns the TCP addresses the server is listening on (after Start). Useful for tests + boot logs.
Click to show internal directories.
Click to hide internal directories.