Karta. SMTP. Handler
(Karta v1.0.0)
One process per SMTP connection (a ThousandIsland handler). It moves bytes
between the socket and the pure Karta.SMTP.Session:
- command lines are framed by
Karta.SMTP.LineBuffer(bounded length); - DATA is read by
Karta.SMTP.DataReader, BDAT chunks byKarta.SMTP.ChunkReader, both into aKarta.SMTP.Spoolfile, so memory stays bounded whatever the message size; - replies to pipelined commands (RFC 2920) are collected and written once all buffered input is processed.
Each connection has its own process, timeouts and send timeout, so a client that stops reading or writing only ever blocks itself.
STARTTLS (RFC 3207): after the 220 reply every byte the client sent
before the handshake is discarded, and the session forgets everything
learnt over the plain connection.
Summary
Functions
Returns a specification to start this module under a supervisor.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec start_link({handler_options :: term(), GenServer.options()}) :: GenServer.on_start()