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:

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

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(arg)

@spec start_link({handler_options :: term(), GenServer.options()}) ::
  GenServer.on_start()