Skip to main content

Module smtp

Module smtp 

Source
Expand description

SMTP server implementation

Modules§

actions
SMTP protocol actions implementation

Structs§

SmtpServer
SMTP server that forwards mail to LLM

Constants§

EHLO_EXTENSIONS
The extensions NetGet’s own EHLO reply advertises.
MAX_LINE_BYTES
The longest single line this server will buffer, in bytes.

Functions§

ehlo_reply
NetGet’s answer to EHLO/HELO, or None for any other line.
greeting_hostname
The hostname a 220 greeting announced (220 <host> ...), for the EHLO reply to repeat.
smtp_command_event_data
The event data for one SMTP line: the line itself, plus what NetGet can tell from it.
smtp_preferred_actions
The actions whose reply wins when a batch answers one SMTP line with several: the one the line’s answer_with names when only one fits. See ExecutionResult::chosen_reply.