Crate mail_laser

Source
Expand description

Orchestrates the MailLaser application startup and component lifecycle.

This library crate initializes configuration and concurrently runs the primary services (SMTP, Health Check). It ensures that if any essential service terminates unexpectedly, the entire application will shut down gracefully.

Modules§

config
Manages application configuration loaded from environment variables.
health
smtp
Handles the primary SMTP server logic, including connection handling, optional STARTTLS negotiation, command processing via smtp_protocol, email parsing via email_parser, and initiating webhook forwarding.
webhook
Handles sending processed email data to a configured webhook URL via HTTPS POST.

Functions§

run
Runs the main MailLaser application logic.